a=[1,2,3,4]; % plot(a); ax=get(gcf,'children'); %set(gca,'XTick',[1,4]); ===set(ax,,'XTick',[1,4]) ax.XTick=[1,4]; ax.XTickLabel={'a','b'};
a=[1,2,3,4]; % plot(a); ax=get(gcf,'children'); %set(gca,'XTick',[1,4]); ===set(ax,,'XTick',[1,4]) ax.XTick=[1,4]; ax.XTickLabel={'a','b'};