Is it possible to obtain a list of the user-supplied functions (functions which are not Matlab toolbox functions) called by a Matlab script?
Asked
Active
Viewed 1,223 times
1 Answers
1
Yes. In the MATLAB Current Folder window, navigate to the folder containing your script. Right-click on the background of the window, and select Reports->Dependency Report. You should get a nice report detailing the dependencies of all the files in that folder.
You can achieve roughly the same result programmatically with the command depfun
, or since version 2014a, matlab.codetools.requiredFilesAndProducts
.
![](../../users/profiles/169781.webp)
Sam Roberts
- 23,382
- 1
- 37
- 61
-
This produces exactly what I was looking for, thanks – Schnabeltier Jul 15 '14 at 08:22