Axes Properties - Matlab
I need to know how to remove the numbers from X and Y axes. I'm don't think this is related to the X grid or Y grid because in the axes Inspector the XGrid and YGrid is in off state.
I tried all but it did 开发者_运维知识库not help.
edit:
thanks...
A simpler solution is
axis off
but it comes with a caveat: it also removes the x
and y
labels. So if you wanted to include labels and remove only the numbers, nibot's answer is the correct way to go.
set(gca, 'XTick', [], 'YTick', [])
精彩评论