The following Matlab project contains the source code and Matlab examples used for this is an update to exporttozip by malcom wood. it uses absolute paths or relative paths. . Malcolm Wood's exportToZip is an excellent function that zips all the functions that your specified function depends on, into one zip file.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.