在你的代码后面加上以下几句:ylim=get(gca,'ylim');ylim(1)=0;set(gca,'ylim',ylim);
x=(0:0.1:1);y=exp(x);plot(x,y);axis([0 max(x) 0 max(y)])grid;