You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This little function allows you to save your data to a mat-file without worrying about accidentally overwriting a previous mat file by the same name. If a mat-file by the specified name (e.g. 'example.mat') already exists, this file is backed-up as e.g. 'example_backup_000.mat' before overwriting 'example.mat'. Every time another overwrite is attempted, the backup counter is incremented.
Cite As
Dennis (2026). safesave (https://au.mathworks.com/matlabcentral/fileexchange/34773-safesave), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.98 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
