about axis ticks: how to set 10 ticks with 5 labels?
3 views (last 30 days)
I want the axis to have ticks at 1:1:10, and tick labels only at 2:2:10
Anybody know how to do this? I tried
y = x;
set(gca,'YTick', 1:1:10, 'YTickLabel', 2:2:10 );
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 2 2])
The result is something that doesn't make sense. See attachment please.