How to solve ODE in matlab

3 ビュー (過去 30 日間)
Ali Najem
Ali Najem 2020 年 5 月 22 日
コメント済み: Ali Najem 2020 年 5 月 23 日
Hello everybody,
I hope you doing well
I have code of ODE and i used ode15s to solve it.
I want to use Euler method instead of ode15s how can i proceed it?
This part of code that I used:
[T,Y]=ode15s(@(t,y) Simplefile(t,y,u,x1,x2,yd), [0 2], [initValue], options)
Any suggestion?
Thanks,

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 22 日
You can download the zip file given in this answer: https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-differential-equation-ode-solver-in-matlab-8-0-r2012b#answer_107643 and study the code of ode1.m. It is the implementation of the Euler method provided in very early releases of MATLAB. It is no longer included in MATLAB, but it is still useful to understand the implementation of the Euler method.
Also see these FEX submissions:
  1 件のコメント
Ali Najem
Ali Najem 2020 年 5 月 23 日
Thank you so much sir
I will try it
My regards..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by