> 数学 >
Matlab用四阶龙格库塔法求解不可微分方程组的初值
y1'=120-2*y1+2*y2 (0
人气:472 ℃ 时间:2020-10-01 14:55:08
解答
%%
function dx=aaa(t,x)%定义matlab函数来描述方程
dx=[120-2*x(1)+2*x(2);2*x(1)-5*x(2)]
%%
x0=[0;0]
[t,y]=ode45('aaa',[0,1],x0);
plot(t,y)
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版