I have a question about plotting while looping to get information from an excel file
I have the following script: for i=3:6:225 x=xlsread('test.xlsx','Sheet1',['B' int2str(i) ':JB' int2str(i)]); y=xlsread('test.xlsx','Sheet1',['B' int2str(i+1) ':JB' int2str(i+1)]'); plot(x,y) hold on end hold off
I wish to have different color for different part of the plot. For example, it could be great that all data from 3,21,39....are plotted in green, while the one 9,27,45.... are in blue, and the data 15,33,51....are plotted in red.
Is it possible to make such a things? Thanks a lot for your help