MATLAB: How to change the right axis on plotyy in MATLAB

MATLABplotyy

How do I change the limit of the right size of the plot using plotyy? Wanted to use axis([a b c d]) but that does not work.

Best Answer

ax = plotyy(...);
axis(ax(2),[a b c d]);