Tspan is not strictly increasing.

2 visualizaciones (últimos 30 días)
Asir Tushar
Asir Tushar el 24 de Nov. de 2019
Comentada: Asir Tushar el 29 de Nov. de 2019
I am trying to solve a second order ode using ODE45 but my tspan is not strictly increasing. How can I solve it ?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by