I am executing the following code:
x = 0:0.01:20;y1 = 200*exp(-0.05*x).*sin(x);y2 = 0.8*exp(-0.5*x).*sin(10*x);[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
When I enable ZOOM mode and press the mouse button, the axis zooms in the second plot only. As a result the xticks and yticks become garbled.
When I enable PAN mode, I can pan only one of the plots interactively. Again, the xticks and yticks are garbled.
When I enable the DATACUSRORMODE (MATLAB 7.0 (R14) and later), I can get the data values of the second plot (obtained using the PLOTYY function) only. I want the DATACURSORMODE function to obtain the data values of the first plot as well.
Best Answer