Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.07 KB File ID: #40762

Resume a long, looped simulation

by Guzman

 

13 Mar 2013

Called from within a function, it stores/retrives the workspace of the latter, allowing resuming.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
resume, simulation
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us