malab绘图——两个变量对应一个因变量
close allclc
x=linspace(0,1);
y1=sin(x);
y2=cos(5*x)+x;
subplot('position',[.2,.52,.85,.4])
plot(x,y1)
set(gca,'Xtick',)
box off
subplot('position',[.2,.1,.85,.42])
plot(x,y2)
set(gca,'Xtick',)
box off
set(gca,'XAxisLocation','top')
set(gca,'ydir','reverse')
set(gca,'Xtick',)
[ 本帖最后由 huright 于 2007-5-15 21:09 编辑 ]
页:
[1]