MATLAB: Drawing multiple (10) subplots in the same figure

plottingsubplot

Hi everyone,
I want to present 10 subplots in the same figure, in two columns (means 5 rows). For example if the plots a are;
plot (t, S1), plot (t, S2), plot (t,S3), …. plot(t, S10),
how to 'set' the position of the specific plots in certain subplot so that I know which plot is at which location.
Thanks

Best Answer

The subplot function fills the subplot positions by row, so that the second subplot (subplot(5,2,2)) is the second subpot in the first row, the first subplot in the second row is subplot(5,2,3), and so for the rest. Just number them accordingly to put them where you want them.