%axis为'x'或'y',分别表示更改x或y刻度 %ticks是字符cell function settick(axis,ticks) n=length(ticks); tkx=get(gca,'XTick');tky=get(gca,'YTick'); switch axis case 'x' w=linspace(tkx(),tkx(end),n); set(gca, 'XTick', w, 'XTickLabel', []);%刷新刻度,去掉刻度值 yh=(*w()-w(end))/;%