Resume a long, looped simulation

Version 1.0.0.0 (2.07 KB) by Guzman
Called from within a function, it stores/retrives the workspace of the latter, allowing resuming.
162 Downloads
Updated 13 Mar 2013

View License

Tired of losing the progress in long, looped simulations (for instance, for scenario generation after and unexpected error or making CTRL-C), I wrote this small function to allow saving and later retrieving the values of the variables at the time of execution. In some sense, it is a sort of 'resume' capability. Placing the code in an inner loop, next time that a broken simulation is restarted, it will recover the data and keep with the recovered indices and variables. Unfortubatelly, the recovery process cannot update FOR loops.

Cite As

Guzman (2024). Resume a long, looped simulation (https://www.mathworks.com/matlabcentral/fileexchange/40762-resume-a-long-looped-simulation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Entering Commands in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0