Cache — Archive & Restore MATLAB Workspace Variables

Version 1.0.5 (55 KB) von Tom
Archive and unarchive MATLAB workspace variables to disk with automatic zip management and cleanup for Windows desktop environments storage.
5 Downloads
Aktualisiert 20. Mär 2026

Lizenz anzeigen

Description
Cache is a lightweight MATLAB addon for archiving and restoring workspace variables to disk.
The Cache.archive function saves a specified workspace variable into a compressed archive file (Archived_Matlab_Variables.zip) on the chosen disk and removes the variable from the workspace. This allows you to temporarily offload large variables while keeping them securely stored.
The Cache.unarchive function restores a previously archived variable back into the caller workspace and removes it from the archive, maintaining clean storage management.
Syntax
Cache.archive(variable) % default C: drive
Cache.archive(variable, drive) % '' or "" allowed but not needed
Cache.unarchive('variable') % default C: drive
Cache.unarchive('variable', disk) % '' or "" needed

Zitieren als

Tom (2026). Cache — Archive & Restore MATLAB Workspace Variables (https://de.mathworks.com/matlabcentral/fileexchange/183330-cache-archive-restore-matlab-workspace-variables), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2025b
Kompatibel mit R2016b bis R2026a
Plattform-Kompatibilität
Windows macOS Linux
Version Veröffentlicht Versionshinweise
1.0.5

Added image to description.

1.0.4

More clarity in the syntax example, new name

1.0.3

Error fixed when zipping Archived_Matlab_Variables

1.0.2