I am using PLOTYY in my GUI because I would like to display two plots with different y-axes. I use the syntax:
plotyy([handles.axes1 handles.axes2],x1dat,y1dat,x2dat,y2dat)
However, when I do this, the right plot does not plot to handles.axes2. Instead it plots to a newly created axes.
Best Answer