Identify all toolbox dependencies
10 次查看(过去 30 天)
显示 更早的评论
requiredfilesandproducts lists all the installed toolbox dependencies, but not those that aren't installed.
The dependency analyser is capable of detecting required toolboxes that aren't installed, is there a way of doing this programmatically?
https://uk.mathworks.com/help/matlab/ref/matlab.codetools.requiredfilesandproducts.html
0 个评论
回答(1 个)
Image Analyst
2022-8-27
See attached function.
2 个评论
Image Analyst
2022-8-29
That utility lists all toolboxes and m-files required to run the program. It does not list functions within a toolbox and does not list toolboxes that are uninstalled (not/never installed) or toolboxes that are installed but never utilized by your m-file. To get a list of all installed toolboxes, whether or not they are used by your m-file, you can use ver:
s = ver;
allInstalledToolboxes = {s.Name}'
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!