Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
is there a way instead of writing all these qcza ( x ), I write just one variable that represents them all like qcza;in and still get the same plot
something like this
Solved! Go to Solution.
....Your each plot data
.....Stack all line data in same variable A
.....Plot all. But can't change each color of line.
....Your each plot data
.....Stack all line data in same variable A
.....Plot all. But can't change each color of line.
I thought that @YA_10963798 was more looking for something like this - but then I sure may be wrong about it...
It would be easier if all vectors in q.cza would be of the same length as then you could augment them all and use a waterfall plot.
In your case it would be necessary to bring those vectors to the same length before, filling with NaN where necessary.
As ttokoro wrote it would not be possible to chose different colors - all lines would be of the same color.
If thats not a problem, come back here and say so. If you insist on different colors, I fear you would have to manually type in all abscissa vectors as you already did with five of them.
BTW, it is a bad idea to use variables with the same name as pre-defined built-in functions. I am talking about "rows" and "cols". Once you define those variables, its much more work to use the built.in functions.