I am trying to remove all numbers from the X- and Y- axes of a plot. However, there seems to be a problem with the 'set' functionality, despite previous threads indicating that problems had been fixed.
I'm running 64-bit matlab R2010b on a 64-bit windows machine.
Here is example code:
clc; close all; figureplot([1:10,2:8],[9:-1:0,1:7],'.')get(gca,'XTick') % this works okay
get(gca,'XTickLabel') % this works okayset(gca,'XTickLabel',{[]}) % Subindex error
set(gca,'XTickLabel',[]) % Subscript error
set(gca,'XTick',[]) % Subscript errorset(gca,'xtick',[]) % Subscript error
With the last 4 lines I get error:
??? Subscript indices must either be real positive integers or logicals.
Or:
??? Error using ==> subsindex Function 'subsindex' is not defined for values of class 'cell'.
Am I doing this right?
Thanks,
Matthew
Best Answer