How to set ytick in yyaxis?

11 views (last 30 days)
Leon
Leon on 16 Dec 2017
Commented: Leon on 18 Dec 2017
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

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

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!