MATLAB: Is there a way to remove individual tick labels individuallabel;ticktop rightytick II would like to remove the top right y-axis tick label (but not all the tick labels). Is there a way to do this? Best Answer ax = gca; %or as appropriateyticklabels = get(ax, 'YTickLabel');yticklabels{end} = ''; %needs to exist but make it emptyset(ax, 'YTickLabel', yticklabels); Related SolutionsMATLAB: How to remove the tic labels but not the marks what you could do is use the set command for the axis. likeset(gca,'YTick',[]); %which will get rid of all the markings for the y axisorset(gca,'Yticklabel',[]) set(gca,'Xticklabel',[]) %to just get rid of the numbers but leave the ticks. 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 QuestionDeletting X and Y axes ticksInconsistent behavior updating tick labelingHow to not display abscissa ticks using command while keeping the ticks of y-axisPlotyy y-axis ticks/label issuesHow to set x-axis labels under certain tick marksMethod for aligning tick labelsHow to have a graph with labeled x-axis ticks on the bottom and top of the graph
Best Answer