exportToZip: Identifies the dependencies of an M-file and creates a ZIP file

バージョン 1.2.0.1 (3.62 KB) 作成者: Malcolm Wood
Files inside $matlabroot/toolbox are omitted, providing a useful way to package your work
ダウンロード: 3.4K
更新 2016/9/1

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

The function "mydepfun" determines the dependencies of an
M-file, ignoring files inside the MATLAB "toolbox" directory. Skipping these files gives significant performance improvements over calling "depfun" directly, especially in MATLAB installations which include multiple toolboxes. The assumption is the same as that in "mypath.m", i.e. that most of us do our work in directories outside $matlabroot/toolbox.
The function "exportToZip" creates a ZIP file containing all the dependencies identified by "mydepfun" for one or more MATLAB functions. This simplifies the process of passing your work to another user, or uploading it to MATLAB Central, by reducing both the effort required and the likelihood of a file being missed out.

The limitations of "depfun" apply: for example, that dependencies introduced by calls such as "eval('peaks')" are not identified. An additional limitation is that if files in the MATLAB toolbox directory somehow depend on files *outside* that directory (e.g.
if you have overloaded toolbox functions), these dependencies will not be picked up as they would by "depfun" itself.

The directory hierarchy is preserved by "exportToZip", which means that all required files must be on the same drive so that a "common root directory" can be determined.

引用

Malcolm Wood (2024). exportToZip: Identifies the dependencies of an M-file and creates a ZIP file (https://www.mathworks.com/matlabcentral/fileexchange/10702-exporttozip-identifies-the-dependencies-of-an-m-file-and-creates-a-zip-file), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2006a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSearch Path についてさらに検索
謝辞

ヒントを得たファイル: depfun2, DepSubFun, mypath.m

ヒントを与えたファイル: exporttozip, mydepfun extended, Documenting (help section of) an m-file

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.1

Updated license

1.2.0.0

Added copyright notice and upgraded string comparisons to strncmpi, which eliminates warnings from M-Lint.

1.1.0.0

Review

1.0.0.0