How do I obtain a dependency report for all MATLAB files within a directory?
85 views (last 30 days)
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:
More Answers (1)
Daniel Frisch on 13 Nov 2020
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')