Error message for tspan in ode45

2 visualizaciones (últimos 30 días)
Nani C
Nani C el 27 de Sept. de 2012
Hi all;
While using ode45 with a pre generated time vector taken in a loop, i get the error message :
The entries in tspan must strictly increase or decrease.
Error in ==> ode45 at 173 [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Any guidance or reference to docs on this error would be helpful.
Thanks, Nani.
  1 comentario
Star Strider
Star Strider el 27 de Sept. de 2012
What values do your vectors for tspan have in your loop?

Iniciar sesión para comentar.

Respuestas (1)

Babak
Babak el 27 de Sept. de 2012
You get this error when your timespan is incorrectly set up.
Example of incorrect timespan:
[0 0]
[0:0.01:10 9]
Correct version:
[0 10]
[0:0.01:10]

Categorías

Más información sobre Programming 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