Error message for tspan in ode45

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

Star Strider
Star Strider 2012년 9월 27일
What values do your vectors for tspan have in your loop?

댓글을 달려면 로그인하십시오.

답변 (1개)

Babak
Babak 2012년 9월 27일

0 개 추천

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]

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2012년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by