I want to make a MATLAB plot that has tick labels but no tick marks on the x axis, but does have tick marks on the y axis. How can I do this?
I can't use
set(gca,'XTick',[])
because this would remove the tick labels. I also can't use
set(gca,'TickLength',[0 0])
because this would remove tick marks on the y axis.