フィルターのクリア

1st order The ODE

2 ビュー (過去 30 日間)
Mohammad Adeeb
Mohammad Adeeb 2021 年 3 月 20 日
コメント済み: Jan 2021 年 3 月 27 日
Is there any tutorial to solve 1st order ode using rung kutta 4th order method without using ode45

採用された回答

Jan
Jan 2021 年 3 月 20 日
編集済み: Jan 2021 年 3 月 20 日
Of course. Either use one of the other integrators, e.g. ode15s. Although it is designed for stiff ODEs, you can process nin-stoff ODEs also. You find a lot of other integrators in the net also, e.g. in the FileExchange. Matlab offers a bunch of integrators with fixed step sizes also: https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-differential-equation-ode-solver-in-matlab-8-0-r2012b
You can use a cheap Euler method only: Determine the current slope by evaluating the ODE, then compute: x(i+1) = x(i) + df * h.
For my lessons of numerical maths it was a homework to write out own Runge Kutta solver. This takes less than an hour.
  2 件のコメント
Mohammad Adeeb
Mohammad Adeeb 2021 年 3 月 20 日
What i mean is without using any built in function with mat lab , i have to use a function tha i have to define
Jan
Jan 2021 年 3 月 27 日
Without using built-in functions you cannot do anything useful in Matlab. I assume only the integrator is meant.
Of course you can write your own Runge Kutta integrator. You do not need a tutorial to do this, but just some basic experiences in Matlab and the definition of the algorithm. You find tutorials for learning Matlab in the net, search e.g. for "Matlab onramp". Examples for integrators can be found also, because this is a standard homework for beginners in numerical maths.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by