matlab hide an axis tick marks and numbers

Hidden digital x-axis

set(gca,'xticklabel',[])

Hidden x-axis scale

set(gca,'xtick',[])

It can also be combined to write

set(gca,'xtick',[],'xticklabel',[])

If y or z-axis operation, then just need to xtick and xticklabel in the x or y z can be replaced
like matlab a friend to me! ! ! Oh together to discuss issues

Published 14 original articles · won praise 15 · views 1338

Guess you like

Origin blog.csdn.net/qq_43625266/article/details/104729284