![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
在Matlab中调用dsolve函数求微分方程[图]的解析解,命...
在Matlab中调用dsolve函数求微分方程的解析解,命令是什么?
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
在Matlab中调用dsolve函数求微分方程的解析解,命令是什么?
第4题
求常微分方程组的解。
A、建立函数文件ty.m。 function dy=ty(t, y) dy=[ y(2)*y(3); -y(1)*y(3);-0.5*y(1)*y(2)]; 调用函数文件: >> [t, y]=ode45(@ty, [0, 12], [0, 1, 1]); >> plot(t,y(:,1),'-',t,y(:,2),'*',t,y(:,3),'+')
B、建立函数文件ty.m。 function dy=ty(t, y) dy=[ y(2)*y(3); -y(1)*y(3);-0.5*y(1)*y(2)]; 调用函数文件: >> clear >> h=@ty; >> [t, y]=ode45(h, [0, 12], [0, 1, 1]); >> plot(t,y(:,1),'-',t,y(:,2),'*',t,y(:,3),'+')
C、ty=@(t, y) [ y(2)*y(3); -y(1)*y(3);-0.5*y(1)*y(2)]; [t, y]=ode45(ty, [0, 12], [0, 1, 1]); plot(t,y(:,1),'-',t,y(:,2),'*',t,y(:,3),'+')
D、[t, y]=ode45(@(t, y) [ y(2)*y(3); -y(1)*y(3);-0.5*y(1)*y(2)], [0, 12], [0, 1, 1]); plot(t,y(:,1),'-',t,y(:,2),'*',t,y(:,3),'+')
第10题
求解常微分方程组, 应用的语句是
A、DSolve[{x'[t]+y[t]==Cos[t],y'[t]+x[t]==Sin[t]},{x[t],y[t]},t]
B、DSolve[x'[t]+y[t]=Cos[t],y'[t]+x[t]=Sin[t],{x[t],y[t]},t]
C、DSolve[{x'[t]+y[t]==Cos[t],y'[t]+x[t]==Sin[t]},x[t],y[t],t]
D、DSolve[{x'[t]+y[t]==Cos[t],y'[t]+x[t]==Sin[t]},{x,y},t]
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!