This is an update to exportToZip by Malcom Wood. It uses absolute paths OR relative paths.
Updated 26 Feb 2013

View License

Malcolm Wood's exportToZip is an excellent function that zips all the functions that your specified function depends on, into one zip file.

It is a very nice archival tool and useful for distributing your software to colleagues.

My mfiles are spread across network drives. The original exportToZip used relative paths and a common rootpath. This does not work for my type of network setup. So I edited the function to use either relative or absolute paths.

Cite As

Mark Morehead (2024). exporttozip (https://www.mathworks.com/matlabcentral/fileexchange/30724-exporttozip), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Search Path in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

2nd update to include recommendation for a nargin<2 test by Ioannis Filippidis.