Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matlab function for dependency analysis [duplicate]

I'm looking for a programmatic way to run a dependency analysis. The analysis would tell me all the toolboxes used by a given project.

The function would be similar to "Tool for analyzing matlab source codes" and the App deployment process checks documented here.

The key difference is that I want to do this using a script and not a GUI. The ultimate objective is to run this as a pre-commit hook to prevent the introduction of new toolbox dependencies into the project.

like image 978
supyo Avatar asked Sep 26 '26 02:09

supyo


1 Answers

See:

depfun: List dependencies of function or P-file

http://www.mathworks.nl/help/matlab/ref/depfun.html

and

fdep: a pedestrian function dependencies finder

http://www.mathworks.com/matlabcentral/fileexchange/17291-fdep-a-pedestrian-function-dependencies-finder

You can use the latter as an example, for inspiration and build your own wrapper around depfun, or as an example of use.

like image 126
user1284631 Avatar answered Sep 28 '26 17:09

user1284631



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!