Use ODE45 with a frequency span instead of time?

4 ビュー (過去 30 日間)
Keith Grey
Keith Grey 2020 年 6 月 11 日
コメント済み: Star Strider 2020 年 6 月 11 日
I have 2 coupled differential equations. I'm trying to use ODE45, but it requires a time span (tspan).
Is there a way to use a frequency span instead, or perhaps another more suitable differential equation solver?

採用された回答

Star Strider
Star Strider 2020 年 6 月 11 日
It does not require that the independent variable be time. It can be whatever your differential equation system requires. If your derivatives are with respect to frequency, use a frequency vector instead.
  2 件のコメント
Keith Grey
Keith Grey 2020 年 6 月 11 日
Can you also solve without initial conditions?
I see conditions are set for displacement. In my case, these are really low values & unknown.
Star Strider
Star Strider 2020 年 6 月 11 日
The numeric ODE solvers all require initial conditions.
If you have data and you need to estimate the initial conditions (and possibly other parameters) to fit your differential equations to the data, that is relatively straightforward to do.
If your differential equations are relatively straightforward, you can use the Symbolic Math Toolbox to get an analytic solution (providing one exists). Those initial conditions can be symbolic.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by