MATLAB: Do not display value on the axis

plot without value on x axis

Hi,
I am looking for a code that allows me to plot a figure where there are no value displayed on the x axis
I tried to use this code here:
set(gca,'xtick',[])
but that didn't work, any suggestions?

Best Answer

Maybe the order is not good
plot(1:3,1:3)
set(gca,'xtick',[])