zipRequiredFilesAnd​Products

Grab all required M and P files associated with your MATLAB script and contain into a ZIP archive.

You are now following this Submission

Collect all required M and P files associated with your code into a ZIP archive. I use this most often to:
1. Share code that demonstrate my functions or procedures,
2. Archive a function in a known good state, or
3. Include my source when deploying a product.
It is built around matlab.codetools.requiredFilesAndProducts and uses Java. I recently updated it to use MATLAB 2019b's argument blocks, which helped clean up the otherwise cumbersome program logic.

Cite As

Jake August (2026). zipRequiredFilesAndProducts (https://uk.mathworks.com/matlabcentral/fileexchange/89624-ziprequiredfilesandproducts), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2019b to R2021a

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0

The updated ZipRequiredFilesAndProducts is a static method of myCodeTools, which utilizes myFileTools to directly create ZIP archives without copying or writing out files to temporary directories.

1.0.0