MATLAB Answers

How can I determine what add-ons I have installed?

748 ビュー (過去 30 日間)
I would like to know what products and other toolboxes are installed into my installation of MATLAB, and also what functions are provided with the toolboxes.

採用された回答

MathWorks Support Team
MathWorks Support Team 2020 年 2 月 27 日
編集済み: MathWorks Support Team 2020 年 2 月 27 日
*Using the Add-On Manager *
*The following answer applies to MATLAB version R2015b or later only. *
View and manage all installed add-ons using the Add-On Manager.
To open the Add-On Manager:
1. In MATLAB, go to the Home tab.
2. Select Add-Ons > Manage Add-Ons.
MATLAB displays a list of MathWorks products, toolboxes, and add-ons installed on your machine.
To view the function list for an add-on:
1. Select the add-on in the Add-On Manager.
2. In the options menu on the right of the add-on, select View in Add-On Explorer. The Functions tab shows the list of functions included with the add-on.
*Using the Command Line *
The following answer applies to MATLAB version R2017b or later only.
To produce a list of installed Community add-ons, use the 'matlab.addons.installedAddons' command:
*The following answer applies to all versions of MATLAB. *
To produce a list of installed MathWorks products and add-ons, use the 'ver' command:
<https://www.mathworks.com/help/matlab/ref/ver.html https://www.mathworks.com/help/matlab/ref/ver.html >
To produce a list of the functions available in MATLAB, use the 'help' function:
<https://www.mathworks.com/help/matlab/ref/help.html https://www.mathworks.com/help/matlab/ref/help.html >

  1 件のコメント

Eike Petersen
Eike Petersen 2020 年 6 月 29 日
TBH it's really sad that there is no easy programmatic way of checking whether a toolbox is ready to be used, i.e., installed and has a license.

サインインしてコメントする。

その他の回答 (2 件)

Reza Ahmadzadeh
Reza Ahmadzadeh 2015 年 6 月 29 日
To check if you have installed a specific toolbox, you can use the existing function in FileExchange called isToolboxAvailable . The usage is as follows:
result = isToolboxAvailable('image processing toolbox','error');

  3 件のコメント

Thomas McKay-Smith
Thomas McKay-Smith 2017 年 9 月 22 日
Since R2006a you can use
result = license('test','image processing toolbox')
making isToolboxAvailable somewhat redundant.
Eike Petersen
Eike Petersen 2020 年 6 月 29 日
To reproduce my comments on the FEX page: This works to check if a product is _installed_. It does not check whether a _license_ is available. Either of these may occur without the other being true, so to check whether a toolbox can actually be used, one should check both. Initially, I thought that this could be achieved by adding a simple one-liner after "result = all(ismember(toolboxName,installedToolboxes));":
result = result && license('test', regexprep(toolboxName, ' ', '_'));
Unfortunately, this doesn't work for all toolboxes, because there are some toolboxes for which the relation between the 'Name' and the 'feature name' is more complex. E.g., the 'Statistics and Machine Learning toolbox' has the feature name 'Statistics_Toolbox' (probably for historical reasons). I am not sure if there is a general way to translate one into the other.
Eike Petersen
Eike Petersen 2020 年 6 月 29 日
This FEX submission appears to solve this problem; see my other answer: https://de.mathworks.com/matlabcentral/fileexchange/77275-matlabtoolboxcheck

サインインしてコメントする。


Eike Petersen
Eike Petersen 2020 年 6 月 29 日
This file exchange submission appears to be a quite comprehensive solution to this problem:
It checks both whether a toolbox is installed and whether a license is available. Works for lists of toolboxes as well.

  0 件のコメント

サインインしてコメントする。

タグ

タグが未入力です。

製品


リリース

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by