I want to draw many plots (say 30) in one figure with distinct color and maker. How can I ask MATLAB to do it automatically?
If I use a loop, it gives all the plots the same color and type.
So I have to use something like this which is too long:
plot(x1,y1,x2,y2,…..x30,y30)
Is there a better way?
Also how can I set the legend for them? Again I have to use such long command for legend:
legend("Plot1','Plot2',….)
Any better way?
Thanks!
Steven
Best Answer