回答 (2 件)

Ameer Hamza
Ameer Hamza 2020 年 6 月 18 日
編集済み: Ameer Hamza 2020 年 6 月 18 日

1 投票

Use ode45(). Try following code
xspan = [0 1];
ic = 1; % initial condition
[t, y_sol] = ode45(@odeFun, xspan, ic);
plot(t, y_sol);
legend({'y'});
function dydx = odeFun(x, y)
dydx = -(x/y).^3;
end
KSSV
KSSV 2020 年 6 月 18 日

1 投票

syms x y(x)
ode = diff(y,x)+(x+2*x)^3/(y+2*y)^3==0 ;
sol = dsolve(ode) ;
celldisp(sol)

カテゴリ

タグ

質問済み:

2020 年 6 月 18 日

回答済み:

2020 年 6 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by