AUTOSAVE uses a timer object to periodically save the variables from the base workspace into a MAT-file. By default, data is saved every 10 minutes into matlab.mat.
User definable options include period (in minutes), the MAT-file name, and a pattern that will be passed to the SAVE command. Can also use
autosave start
autosave stop
autosave delete
to start autosaving (timer is created if one doesn't already exist), stop autosaving (timer still exists, so it can be restarted), and delete the timer object and the autosave file.
Cite As
Steve Simon (2024). AUTOSAVE (https://www.mathworks.com/matlabcentral/fileexchange/4688-autosave), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.