MATLAB: How to set ytick in yyaxis

MATLAByyaxis

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]);

Best Answer

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