Error message for tspan in ode45
1 次查看(过去 30 天)
显示 更早的评论
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 个)
Babak
2012-9-27
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]
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!