ode23, too slow
Show older comments
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 Comments
Walter Roberson
on 3 Jun 2022
https://www.mathworks.com/help/matlab/math/parameterizing-functions.html
Walter Roberson
on 3 Jun 2022
I also suspect that you have a stiff system and should try ode23s
Accepted Answer
More Answers (1)
Gloria
on 3 Jun 2022
0 votes
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!