Solve the differential equation
조회 수: 29 (최근 30일)
이전 댓글 표시
답변 (2개)
Ameer Hamza
2020년 6월 18일
편집: Ameer Hamza
2020년 6월 18일
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
댓글 수: 0
KSSV
2020년 6월 18일
syms x y(x)
ode = diff(y,x)+(x+2*x)^3/(y+2*y)^3==0 ;
sol = dsolve(ode) ;
celldisp(sol)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!