I'm trying to take data that is 86 rows long and generate a series of subplots. The code would generate 5 subplots per figure and repeat such that the first would be rows 1-5, second rows 6-10, etc. Ex.
a = row 1
b = row 2
e = row 5
I have been able to generate this plot manually for 5 rows at a time; i want to loop this script to generate sets of 5 subplots per figure until all rows have been plotted.
The code I used to generate the 5 rows successfully is as follows:
start = 1finish = 5rows = finish - startfigurefor i = start:1:finishhold onsubplot(rows+1,1,i);plot(chan1(i,2:end));end
Any suggestions on how to expand this to run all the data at once would be greatly appreciated!