Can anyone help with writing an Euler solver code in MATLAB, that can solve any ordinary differential equation like ode1 inbuilt solver?

2 ビュー (過去 30 日間)
Shilpesh
Shilpesh 2018 年 1 月 30 日
回答済み: Torsten 2018 年 1 月 30 日
Hello, I am trying to write my own solver based on Euler method, that would solve any differential equation, just like ode1. I found many documents and websites that do this for the case of simple first order ordinary differential equation, but not for higher order equations. So I am looking for any document that would help me generalize the solver code for any order differential equation. Thanks

回答 (1 件)

Torsten
Torsten 2018 年 1 月 30 日
Convert your higher-order ODE into a system of first order ODEs:
Best wishes
Torsten.

カテゴリ

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