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 appropriate
yticklabels = get(ax, 'YTickLabel');
yticklabels{end} = ''; %needs to exist but make it empty
set(ax, 'YTickLabel', yticklabels);