nrows = 8;ncols = 5;currentPlot = 1;for i = 1:size(input,1) subplot(nrows, ncols, currentPlot); plot(input(i,:)); currentPlot = currentPlot + 1; end
The size of the input is 100, so all of the subplots cannot fit into one figure. But I don't want to squeeze all of the subplots into one figure as that is somewhat overwhelming. Instead, I'd like to be able to pull up as many new figures as is required to finish running through the loop, while filling in with the next indexed subplots.
Best Answer