How do I obtain a dependency report for all MATLAB files within a directory?

46 ビュー (過去 30 日間)
I have several MATLAB files within a directory and I want to obtain a dependency report for all the files. This will help me understand the dependency of a file on other files.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
The Dependency Report shows dependencies among MATLAB files in a directory. To generate a dependency report:
1. Select Desktop > Current Directory and navigate to the directory containing the MATLAB files for which you want to produce a Dependency Report.
2. On the Current Directory browser toolbar, click the Actions button, and then select Reports > Dependency Report.
The Dependency Report opens in the MATLAB Web Browser. The Dependency Report is similar to running DEPFUN on each MATLAB file, although the two do not provide the exact same results. This information with more details is available in the documentation at:
<http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_env/f9-6232.html#f9-16299>

その他の回答 (1 件)

Daniel Frisch
Daniel Frisch 2020 年 11 月 13 日
This function also uses the Matlab dependency report internally and then copies all the files into a single folder, which may be convenient if you want to share or archive the actual, complete code:
>> copy_dependencies('my_script.m', 'target_folder')

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by