So, I'm running ode45 for a very large set of N coupled first order ODEs. If I allow ode45 to keep running in some cases, eventually it just stops and gives an out of memory error. "Requested 'N by timesteps' (16.0GB) array exceeds maximum array size preference." I don't have a problem with this, what I do have a problem with is the fact that none of the work ode45 has done up to that point is saved in working memory. If I had a way to stop execution at a set number of timesteps, so that this issue would never arise, that would be great.
MATLAB: How to stop ode45 after a fixed number of time steps
arrayarraysodeode45
Best Answer