3

Is it possible to obtain a list of the user-supplied functions (functions which are not Matlab toolbox functions) called by a Matlab script?

Schnabeltier
  • 188
  • 6

1 Answers1

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.

Sam Roberts
  • 23,382
  • 1
  • 37
  • 61