Timed autosave

版本 1.0.0.1 (1.8 KB) 作者: David Tarkowski
Periodically saves the contents of the workspace to a mat file.
2.2K 次下载
更新时间 2016/9/1

查看许可证

AUTOSAVE Periodically save the contents of the workspace to a file.
AUTOSAVE(FILENAME, PERIOD) saves the contents of the base workspace to the file FILENAME every PERIOD seconds. If PERIOD is omitted, it defaults to 60 seconds.If FILENAME is omitted, it defaults to autosave.mat.

It is possible to specify which variables to save. To do this create a
cell array in the base workspace with the name 'autosavelist'. Each
cell should be a string containing the name of the variable to be
saved. Example: 'autosavelist = {'var1', 'var2'};'.

To stop the autosaver, use the command:

autosave -quit

See also TIMER, SAVE.

引用格式

David Tarkowski (2024). Timed autosave (https://www.mathworks.com/matlabcentral/fileexchange/2981-timed-autosave), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0