ode45 and switching differential equations

4 ビュー (過去 30 日間)
Mufas
Mufas 2015 年 12 月 11 日
回答済み: Torsten 2015 年 12 月 11 日
I have a system which is split into 2 phases, where there are different set of coupeled differential equations descriping each phase. The switch from phase 1 to 2 happens at a certain criteria. My question is how do I switch the set of differential equations ode45 solves when this critiria is met?

回答 (1 件)

Torsten
Torsten 2015 年 12 月 11 日
Use the "event" facility of the ODE solvers.
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