how to find the numeric solution for differential equations
이전 댓글 표시
i need to find the numeric solution for
3y''(t)+6y'(t)+3y=1
y(0)=1
y'(0)=-1/3
i have to use : diff, cond , dsolver, simplify and subs.
댓글 수: 9
Torsten
2021년 5월 23일
Look at the "dsolve" documentation. You will find many examples there similar to yours.
Jonathan Jubran
2021년 5월 23일
Torsten
2021년 5월 23일
Take a look at the example "Solve differential equations with conditions" under
de.mathworks.com/help/symbolic/dsolve.html
It's almost a solution for your case.
Jonathan Jubran
2021년 5월 23일
Jonathan Jubran
2021년 5월 23일
Torsten
2021년 5월 23일
And what is your definition of "numeric solution" ? Are you given some specified points t where you should evaluate y(t) ? Or do you want to plot the solution over a specified interval ?
Jonathan Jubran
2021년 5월 23일
Torsten
2021년 5월 23일
If you named your solution ysol, then
t = 0:0.01:10;
ysolt = subs(ysol(t))
should give you the corresponding vector of function values.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!