mkzip

Matlab class to losslessly compress and uncompress numerical matrices and strings in memory

https://github.com/duijnhouwer/mkzip

You are now following this Submission

Matlab class to losslessly compress and uncompress numerical matrices and strings in memory

Example:

d = randi(8,1000,1000); % generate some data
M = mkzip(d) % returns compressed version of d in mkzip object M
d = M.unzip; % returns uncompressed data in d
r = M.ratio % returns the compression ratio r

This is a class wrapper for Michael Kleder dzip/dunzip functions. The main advantage of making this a class is that it is impossible to forget that a certain array is zipped and end up doing calculations on it as if it is the actual data, which could be disastrous. It also provides some extra functionality (e.g., ratio) and as a class only one M-file is needed instead of one for dzip and one for dunzip.

Cite As

Duijnhouwer (2026). mkzip (https://github.com/duijnhouwer/mkzip), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.0.2

updated help text, moved into github repository

1.0.1

Removed a redundant sub-function

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.