MATLAB: Changing xlim with plotyy

axesplotyyxlim

I'm trying to figure out how to adjust the x axis limits for both y plots. The function:
[AX,H1,H2] = plotyy(pitch,Torque,pitch,RPM)
I understand using xlim([min max]), but that only applies to the first x axis and not the second. Are there any functions or methods to accomplish this?

Best Answer

xlim(AX(2), [min max])