How to label 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?

 Accepted Answer

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

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!