packageFile

Package a file and its dependencies into a single folder or zip-file. Includes a list of used toolboxes.
5 Downloads
Updated 1 Jul 2021

View License

packageFile Package a file and its depencies into a single folder.
[packageFolder] = packageFile(file) creates a folder named "<file>-packaged" which includes the file and its dependencies. Dependencies are placed in a private subfolder so that they don't overlap with other files in the workspace. The package also includes a text file which list all required toolboxes to execute the file.
packageFile(___, "IncludeMat", bool) if the IncludeMat flag is true, any .mat files loaded in the given file will also be included in the package.
packageFile(___, "Zip", bool) if the Zip flag is true, a zip file of the package content will be created instead of a folder.
packageFile(___, "Verbose", bool) if the Verbose flag is true, the dependencies and required toolboxes will be printed.

Cite As

Girmi Schouten (2026). packageFile (https://in.mathworks.com/matlabcentral/fileexchange/95143-packagefile), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0