Tspan is not strictly increasing.
3 次查看(过去 30 天)
显示 更早的评论
I am trying to solve a second order ode using ODE45 but my tspan is not strictly increasing. How can I solve it ?
0 个评论
采纳的回答
Stephan
2019-11-27
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 个评论
更多回答(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!