MATLAB: How to label 2nd y-axis

handlesplotyyylabel 2nd y axis

Is it possible to label the 2nd y-axis on plotyy? ylabel labels the main y-axis, is there a function to set a label for the second axis?

Best Answer

H = plotyy(1:10,1:10,1:10,rand(1,10));
ylabel(H(1),'ylabel 1');
ylabel(H(2),'ylabel 2');
Related Question