View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.5 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.76 KB File ID: #30724 Version: 1.3




11 Mar 2011 (Updated )

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

| Watch this File

File Information

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.


Mypath.M and Export To Zip: Identifies The Dependencies Of An M File And Creates A Zip File inspired this file.

MATLAB release MATLAB 8.0 (R2012b)
Other requirements You will need mydepfun.m from the original exportTOZip.m by Malcolm Wood. I think you need mypath.m also by Malcolm Wood. This should be generic and should run on most platforms.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
18 Feb 2013 Ioannis Filippidis

Nice function, thanks!

It appears that:

if nargin < 2
abspath = 0;

is missing, so the 1-argument call returns an error.

02 Aug 2011 Stanislas Rapacchi

26 Feb 2013 1.3

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

Contact us