I am modeling a SIR disease spreading model in Matlab, I have a grid which is a cell array, and each cell mean a state (s,i,r).
I want to plot grid with the s as blue dots and i as red dots, and the axis take the length(Grid).
Grid =
[] [] 's' 's' [] [] [] 'i' [] []
's' [] 's' 's' [] [] [] [] 's' []
[] [] [] [] [] [] [] [] 's' []
[] [] [] 's' [] [] [] [] [] []
[] 's' [] 'i' 's' [] 's' 'i' [] 's'
[] [] 's' 's' [] 's' [] 'i' 's' 'i'
'i' [] [] [] 's' [] [] [] [] []
[] [] [] 's' [] [] [] [] [] []
[] 's' [] [] [] [] 'i' 'i' 'i' []
[] [] 's' [] 's' 's' [] [] [] []
