matlab解微分方程组,syms S1 S2 t;[S2,S1]=dsolve('DS2=12.19t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01*S1','S1(2007)=1.1','S2(2000)=9.56');为什么运行不了,

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 06:17:54
matlab解微分方程组,symsS1S2t;[S2,S1]=dsolve('DS2=12.19t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01

matlab解微分方程组,syms S1 S2 t;[S2,S1]=dsolve('DS2=12.19t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01*S1','S1(2007)=1.1','S2(2000)=9.56');为什么运行不了,
matlab解微分方程组,

syms S1 S2 t;
[S2,S1]=dsolve('DS2=12.19t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01*S1','S1(2007)=1.1','S2(2000)=9.56');
为什么运行不了,

matlab解微分方程组,syms S1 S2 t;[S2,S1]=dsolve('DS2=12.19t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01*S1','S1(2007)=1.1','S2(2000)=9.56');为什么运行不了,
注意,12.19t这种写法不对,应该写成12.19*t.结果如下
>> syms S1 S2 t
>> [S2,S1]=dsolve('DS2=12.19*t-24209-0.3*S2-0.01*S2','DS1=0.3*S2-0.01*S1','S1(2007)=1.1','S2(2000)=9.56')
S2 =
((9975321*exp(620))/24025 + exp((3*t)/10)*((exp(179/10)*(4659318355*exp(217/100) - 19950642))/48050 + exp(t/100)*(1219*t - 2542800)) - (exp((31*t)/100)*(37789*t - 75169800))/961)/exp((31*t)/100)
S1 =
-((9975321*exp(620))/24025 - (exp((31*t)/100)*(37789*t - 75169800))/961)/exp((31*t)/100)