How to solve a differential equations?
이전 댓글 표시
>> syms t y
>> a= t.*y+t.^2.*sin(t);
>> ydiff=@(t,y) a
ydiff =
@(t,y)a
I want differential equations in place of a.
what should i do?
댓글 수: 1
madhan ravi
2018년 12월 1일
upload the equation in latex form
답변 (2개)
madhan ravi
2018년 12월 1일
syms t y
a= t.*y+t.^2.*sin(t);
diff(a,y)
Star Strider
2018년 12월 1일
syms t y(t)
a = diff(y) == t.*y+t.^2.*sin(t);
av = odeToVectorField(a)
a_fcn = matlabFunction(av, 'Vars',{t,Y})
You can then use ‘a_fcn’ with the MATLAB numerical ODE solvers.
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!