Code covered by the BSD License  

Highlights from
package

2.5

2.5 | 3 ratings Rate this file 2 Downloads (last 30 days) File Size: 2.84 KB File ID: #6148

package

by Daniel Ennis

 

29 Oct 2004 (Updated 12 Apr 2006)

This function creates a zip file consisting of a core m-file and the functions it depends upon.

| Watch this File

File Information
Description

% This function makes a zip file archive from an m-file and its
% dependencies. The zip-file is stored in the same path as the
% m-file with a *.zip extension. The keyword is used to identify and
% package ONLY m-files that are on paths containing the keyword. This
% prevents the archiving of Mathwork functions which the end user is likely
% to have or need a license for. The function is recursive and therefore
% packages functions of functions of functions etc.

Acknowledgements
This submission has inspired the following:
M-file dependency consolidator
MATLAB release MATLAB 7 (R14)
Other requirements None. I develop under UNIX/OSX. Let me know if there are PC/SUN/etc. problems.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
26 Jan 2006 mut ante

needs improvements because it only zips files that are dependencies of input... from my point of view, if it is intended to make a release, it should also zip the dependencies of the depencies and so on.....

26 Jan 2006 mut ante

sorry about the previous review... i've done the improvements myself... it's ok now and running.... thanks to the well commented code:)

19 Nov 2008 Thierry Dalon

Does not work on Windows without using of keyword (depfun2 makes an error).
Is this keyword option really useful? How do you use it?
You could remove commented depfun2 subfunction from file.
Filtering of matlab basic function would be nice.
Display of list of files in zip does not work nicely. Use disp(char(cellstr)) instead of a loop.
All in all I find FX exporttozip better.

Please login to add a comment or rating.
Updates
27 Jun 2005

Two changes were made: 1) made the default keyword the username if running on a UNIX platform, 2) Included DEPFUN2 as an internal function to prevent having to download two files.

10 Aug 2005

Improved handling for PC platform.

12 Apr 2006

Bug fix. Feature addition.

Tag Activity for this File
Tag Applied By Date/Time
path Daniel Ennis 22 Oct 2008 07:34:22
directories Daniel Ennis 22 Oct 2008 07:34:22
files Daniel Ennis 22 Oct 2008 07:34:22
zip Daniel Ennis 22 Oct 2008 07:34:22
multiple Daniel Ennis 22 Oct 2008 07:34:22
mfiles Daniel Ennis 22 Oct 2008 07:34:22
package Daniel Ennis 22 Oct 2008 07:34:22
dependency Daniel Ennis 22 Oct 2008 07:34:22
utilities Daniel Ennis 22 Oct 2008 07:34:22

Contact us at files@mathworks.com