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

    %% Remove _x_-Axis Tick Marks
% Remove the tick marks along the _x_-axis by specifying the tick values as
% an empty array.

x = linspace(0,10);
y = sin(x);
plot(x,y)
xticks([])