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

    %% Increment _x_-Axis Tick Values by 10
% Display tick marks along the _x_-axis at increments of 10, starting from
% 0 and ending at 50. 

x = linspace(0,50);
y = sin(x/2);
plot(x,y)
xticks(0:10:50)