Tspan is not strictly increasing.

3 visualizzazioni (ultimi 30 giorni)
Asir Tushar
Asir Tushar il 24 Nov 2019
Commentato: Asir Tushar il 29 Nov 2019
I am trying to solve a second order ode using ODE45 but my tspan is not strictly increasing. How can I solve it ?

Risposta accettata

Stephan
Stephan il 27 Nov 2019
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 Commenti
Stephan
Stephan il 28 Nov 2019
tspan = sort(unique(T0));
should solve this.
Asir Tushar
Asir Tushar il 29 Nov 2019
Thank you.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by