How to set ytick in yyaxis?

Below is my code. How do I set the ytick on yyaxis left?
yyaxis left
plot(T, PH, 'bo', 'markersize', 3);
% ytick([7.7:0.2:8.7]);
ylim([7.7 8.7]);

 Accepted Answer

Almost--the function name is plural, not singular..
...
yticks([7.7:0.2:8.7]);

More Answers (0)

Products

Tags

Asked:

on 16 Dec 2017

Commented:

on 18 Dec 2017

Community Treasure Hunt

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

Start Hunting!