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

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

stem(1:10)
xticks([0 4 6 10])

%%
xticks('auto')