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 Related SolutionsMATLAB: Deletting X and Y axes ticks set(gca,'xtick',[]) set(gca,'ytick',[]) MATLAB: Problem trying to remove numbers from plot axes Did you define a variable called "set"? Check this by adding this before the failing command:which set -allShadowing built-in functions in Matlab is a bad idea and leads to such bugs frequently. Related QuestionAre the data and tick labels for the log or semilog plot displayed incorrectly when rendered in OpenGLAxis tick labels changed upon export to EPSText instead of values in tickAxes & subplot etc. return double instead of matlab.graphics.axis.AxesAre UIPANELs renderered incorrectly, when using the OpenGL rendererMATLAB bug for plotting? Overlap between the x-ticks and the number labels: when using inverted y-axis and logarithmic x-axis.
Best Answer