Cache

Version 1.0.3 (54.9 KB) by Tom
Archive and unarchive MATLAB workspace variables to disk with automatic zip management and cleanup for Windows desktop environments storage.
2 Downloads
Updated 6 Mar 2026

View License

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)
Cache.archive(variable, disk)
Cache.unarchive('variable')
Cache.unarchive('variable', disk)

Cite As

Tom (2026). Cache (https://uk.mathworks.com/matlabcentral/fileexchange/183330-cache), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with R2016b to R2026a
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.3

Error fixed when zipping Archived_Matlab_Variables

1.0.2