compress.m
No License
Run length compression of a vector or matrix by creating a string of MATLAB evaluable code! Could thus also be called 'data2mcode' or something like that. This function replaces streams of same numbers with MATLAB code and returns a string which can be evaluated! Really funny way to save memory or transform i.e. pictures to MATLAB executable code. I used it to make a Simulink block icon without the need of a file on the disk.
(See the Simulink model in the ddfread.m on MatlabCentral)
Cite As
Berthold Kaeferstein (2024). compress.m (https://www.mathworks.com/matlabcentral/fileexchange/1592-compress-m), 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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |