www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetYAxisTickValuesBackToDefaultValuesExample.m

    %% Set y-Axis Tick Values Back to Default Values
% Create a stem chart and specify the _y_-axis tick values. Then, set the
% _y_-axis tick values back to the default values. 

stem(1:10)
yticks([0 5 10])

%%
yticks('auto')