Tspan is not strictly increasing.

4 ビュー (過去 30 日間)
Asir Tushar
Asir Tushar 2019 年 11 月 24 日
コメント済み: Asir Tushar 2019 年 11 月 29 日
I am trying to solve a second order ode using ODE45 but my tspan is not strictly increasing. How can I solve it ?

採用された回答

Stephan
Stephan 2019 年 11 月 27 日
Since ode45 uses an automated stepwide control just define the start and the end of your tspan this way:
tspan = [0 10];
This is all you have to do to solve this problem.
  3 件のコメント
Stephan
Stephan 2019 年 11 月 28 日
tspan = sort(unique(T0));
should solve this.
Asir Tushar
Asir Tushar 2019 年 11 月 29 日
Thank you.

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

その他の回答 (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