MATLAB: Text instead of values in tick plottick How can I have text for example: a,b,c,d instead of 1,2,3,4 in xtick? Matlab always tells me that these values must be numeric…Thanks Best Answer set(gca,'xtick',[1 2 3 4],'xticklabel',{'a','b','c','d'}) Related SolutionsMATLAB: Deletting X and Y axes ticks set(gca,'xtick',[]) set(gca,'ytick',[]) MATLAB: Removing ticks 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 QuestionChange the axis tickRemoving Xaxis and Yaxis valuesSeting ticks on axisHow to remove the tic labels but not the marksRemove certain yticklabels from axis
Best Answer