remove certain yticklabels from axis
1 visualizzazione (ultimi 30 giorni)
I have a plot that has a yaxis range from 0 to 9.
I only want the yticklabels for 1 to 8 to be visible.
I have tried:
yticks = get(gca,'YTick');
ytickLabels = get(gca,'YTickLabel');
But this doesnt work. How do I not show the 0 and the 9 on the ytick labels? Thanks