Help with saving contents of a run every 240 iterations

Hi there, I am solving an ODE problem with ode15s and at present am running the code for random initial conditions 240 times in one go (240 is just a number I choose since the .mat files were manageable for this number). My question is :
Is there a provision in matlab that I can instead of running 240 cases, run approx 10000 cases and store output of every 240 iterations in a seperate mat file?
Thanks

Tags

Asked:

on 22 May 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!