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

    %% Increment y-Axis Tick Values by 25
% Display tick marks along the _y_-axis at increments of 25, starting from
% 0 and ending at 100. 

x = linspace(0,10);
y = x.^2;
plot(x,y)
yticks(0:25:100)