ode23, too slow
显示 更早的评论
It takes a long time to solve the code. Is it because the code is reading data from a.dat file? How can I make it go faster? It slows down even more as time increases and the time step gets smaller.
2 个评论
Walter Roberson
2022-6-3
https://www.mathworks.com/help/matlab/math/parameterizing-functions.html
Walter Roberson
2022-6-3
I also suspect that you have a stiff system and should try ode23s
采纳的回答
更多回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!