MATLAB: Removing ticks

MATLABsetxtick

If I use
set(gca,'xtick',[])
the ticks vanish as expected, but the exponent, common for all ticks, remains in the plot at the end of the axis.
How can I avoid this

Best Answer

Hi Hans,
now I get it. In this special case you have to deactivate the xticklabels, too. This should works fine:
A(1,1:21)= 100000:100020;
B(1:100,1)= 1:100;
C(1:100,1:21)=33;
figure;
pcolor(A,B,C)
set(gca,'xtick',[])
set(gca,'xticklabel',[])
Best regards,
Friedrich