I have a plotyy figure in MATLAB with 2 vectors in on each y axis.
plotyy(x1,[y1(:),y2(:)], x1,[y3(:),y4(:)])
I need to format each of the lines separately, but can not find the documentation about how to do this. Can someone please me show an example?
Does the following example code help?
In the above code, the figure handle
fig1corresponds to the first y-plot, ieY1andY2, and I can access the individual lines by indexingfig1with1and2.Similarly, the figure handle
fig2corresponds to the second y-plot, ieY3andY4, and I accessY3by indexing this handle with1. I could also accessY4withfig2(2), if I so desired.