hyjzy 发表于 2007-9-8 06:00

请教如何将两幅图完全并拢在一起?

以下是我的程序。请教如何将两幅图完全上下完全并排在一起,并且希望第一幅图有横坐标但没有刻度。非常感谢。
clear all
a105=86.9474;
b105=5.0331;
r105=0.4839;
a005=48.4998;
b005=2.7261;
r005=0.6399;
at05=[-1:7];
y105=a105./(1+b105*exp(-r105*at05));
y005=a005./(1+b005*exp(-r005*at05));
t0205   =log(b105)/r105;
t0005   =log(b005)/r005;
t1205   =log((2-sqrt(3))*b105)/r105;
t1005   =log((2-sqrt(3))*b005)/r005;
t2205   =log((2+sqrt(3))*b105)/r105;
t2005   =log((2+sqrt(3))*b005)/r005;
yt0205=a105./(1+b105*exp(-r105*t0205));
yt0005=a005./(1+b005*exp(-r005*t0005));
yt1205=a105./(1+b105*exp(-r105*t1205));
yt1005=a005./(1+b005*exp(-r005*t1005));
yt2205=a105./(1+b105*exp(-r105*t2205));
yt2005=a005./(1+b005*exp(-r005*t2005));
at05=-19:10:61;
t0205new=10*t0205-9;
t0005new=10*t0005-9;
t1205new=10*t1205-9;
t1005new=10*t1005-9;
t2205new=10*t2205-9;
t2005new=10*t2005-9;
a106=74.6028;
b106=3.4098;
r106=0.0559;
a006=46.4424;
b006=1.8315;
r006=0.0744;
at06=[-19 -9 1 9 14 19 25 31 36 42 50 51 61];
y106=a106./(1+b106*exp(-r106*at06));
y006=a006./(1+b006*exp(-r006*at06));
t0206   =log(b106)/r106;
t0006   =log(b006)/r006;
t1206   =log((2-sqrt(3))*b106)/r106;
t1006   =log((2-sqrt(3))*b006)/r006;
t2206   =log((2+sqrt(3))*b106)/r106;
t2006   =log((2+sqrt(3))*b006)/r006;
yt0206=a106./(1+b106*exp(-r106*t0206));
yt0006=a006./(1+b006*exp(-r006*t0006));
yt1206=a106./(1+b106*exp(-r106*t1206));
yt1006=a006./(1+b006*exp(-r006*t1006));
yt2206=a106./(1+b106*exp(-r106*t2206));
yt2006=a006./(1+b006*exp(-r006*t2006));
axis([-20, 70, 0 80]);
subplot(2,1,1),plot(at05,y105,'r-',at05,y005,'b-','LineWidth',1.5)
hold on
plot(,,'r-',,,'b-','LineWidth',1.5)
% hold on
plot(,,'r:',,,'b:','LineWidth',1.5)
% hold on
plot(,,'r:',,,'b:','LineWidth',1.5)
% hold on
axis([-20, 70, 0 80]);
subplot(2,1,2),plot(at06,y106,'r-',at06,y006,'b-','LineWidth',1.5)
hold on
plot(,,'r-',,,'b-','LineWidth',1.5)
hold on
plot(,,'r:',,,'b:','LineWidth',1.5)
hold on
plot(,,'r:',,,'b:','LineWidth',1.5)
hold on
xlabel('Time (day)', 'FontSize', 12);
ylabel('Plant Height (cm)', 'FontSize', 12);

[ 本帖最后由 花如月 于 2007-9-8 16:54 编辑 ]

twomao 发表于 2007-9-8 16:35

两幅图共用横坐标么?

[ 本帖最后由 twomao 于 2007-9-8 17:05 编辑 ]

花如月 发表于 2007-9-8 16:55

回复 #1 hyjzy 的帖子

直接在图形窗口编辑就可以的,程序比较麻烦
页: [1]
查看完整版本: 请教如何将两幅图完全并拢在一起?