www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyNonUniformxAxisTickValuesExample.m
%% Specify Nonuniform _x_-Axis Tick Values % Display tick marks along the _x_-axis at nonuniform values between -5 % and 5. MATLAB(R) labels the tick marks with the numeric values. x = linspace(-5,5); y = x.^2; plot(x,y) xticks([-5 -2.5 -1 0 1 2.5 5])