ode45解二阶微分方程。

18 ビュー (過去 30 日間)
百家乐网站网址【gb2032 .com】
利用ode45解二阶微分方程画出的图像是不断上升的,而解析解的图像是不断下降的图像。请问问题在哪?程序为:
function dydx=myode(x,y)
dydx=zeros(2,1)
dydx(1)=y(2)
dydx(2)=(x.^2-1).*y(1)
end
xspan=[0 8]
y0=[0 1]
[x,y]=ode45(@myode,xspan,y0)
plot(x,y(:,1))

回答 (0 件)

カテゴリ

Help Center および File Exchange常微分方程 についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!