MATLAB: Axis: no labels but grid on

axesMATLAB

Hi,
I have a simple 3D plot, see figure. I would like to remove the labels on the axis, but I would also like to keep the grid and the little ticks on the axis. But, I don't want the "numbers". If I do this
set(gca,'xtick',[],'ytick',[],'ztick',[]);
I loose the grid. Does anyone know how to do it?

Best Answer

set(gca,'XTickLabel','','YTickLabel','','ZTickLabel','');