Identify all toolbox dependencies

조회 수: 12 (최근 30일)
David Wilby
David Wilby 2022년 8월 27일
댓글: Image Analyst 2022년 8월 29일
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

답변 (1개)

Image Analyst
Image Analyst 2022년 8월 27일
See attached function.
  댓글 수: 2
David Wilby
David Wilby 2022년 8월 29일
Great, thanks. But this function just invokes requiredfilesandproducts, which as described in the question, only lists the installed required toolboxes, not the uninstalled toolboxes.
Image Analyst
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 CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by