下面程序为何在matlab中运行不了啊?t=1:80C(t)=-3.22*t^3+386.8*t^2-5500.912*tSi(t)=773.6*t-9.670*t^2;So(t)=5500.912;t=81:150C(t)=-275.456*t^2+61885260;Si(t)=0;So(t)=5500.912plot(t,C(t))plot(t,Si(t),t,Si(t),'r')
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 08:38:36
下面程序为何在matlab中运行不了啊?t=1:80C(t)=-3.22*t^3+386.8*t^2-5500.912*tSi(t)=773.6*t-9.670*t^2;So(t)=5500.912;t=81:150C(t)=-275.456*t^2+61885260;Si(t)=0;So(t)=5500.912plot(t,C(t))plot(t,Si(t),t,Si(t),'r')
下面程序为何在matlab中运行不了啊?
t=1:80
C(t)=-3.22*t^3+386.8*t^2-5500.912*t
Si(t)=773.6*t-9.670*t^2;
So(t)=5500.912;
t=81:150
C(t)=-275.456*t^2+61885260;
Si(t)=0;
So(t)=5500.912
plot(t,C(t))
plot(t,Si(t),t,Si(t),'r')
下面程序为何在matlab中运行不了啊?t=1:80C(t)=-3.22*t^3+386.8*t^2-5500.912*tSi(t)=773.6*t-9.670*t^2;So(t)=5500.912;t=81:150C(t)=-275.456*t^2+61885260;Si(t)=0;So(t)=5500.912plot(t,C(t))plot(t,Si(t),t,Si(t),'r')
for t=1:80
C(t)=-3.22*t^3+386.8*t^2-5500.912*t;
Si(t)=773.6*t-9.670*t^2;
So(t)=5500.912;
end
for t=81:150
C(t)=-275.456*t^2+61885260;
Si(t)=0;
So(t)=5500.912;
end
t=1:150;
plot(t,C)
figure
plot(t,Si,t,So,'r')