So, I'm solving some ODEs in MATLAB using ode45. Nothing particularly complicated about them or the code, but each ODE solution takes 20-30 minutes to obtain, and I need to get about 10. (It's a parameter sweep.)
While sitting and waiting for the solutions to arrive, I find myself wishing there was some way to watch the solutions be plotted out as the ODEs are solved, both to reassure myself that progress is being made and to be able to end the solver if something seems to be off about the solution.
Is there a way to return the current (incomplete) solution from ode45 and plot it in real time as it's being solved? I'm currently plotting the solutions as they arrive, but that still takes some time, and real time would be fantastic.
OutputFcn
– see theballode
example. – horchler