File Exchange

image thumbnail

isToolboxAvailable

version 1.0.0.0 (1.27 KB) by Reza Ahmadzadeh
This function checks the availability of a specific toolbox on the installed MATLAB on your machine.

3 Downloads

Updated 29 Jun 2015

View License

This function checks the availability of a specific toolbox on the installed MATLAB on your machine.
The inputs to the function include:
1- the name of the specific toolbox as a string: 'Image Processing Toolbox'
2- the action you want the function take including {'warning', 'error'} . This input is optional.
The output of the function is 1 if the toolbox is installed on your machine and 0 otherwise.
Check out the following example:

>> result = isToolboxAvailable('Image Processing Toolbox','error')
>>
>> result =
>> 1

Cite As

Reza Ahmadzadeh (2020). isToolboxAvailable (https://www.mathworks.com/matlabcentral/fileexchange/51794-istoolboxavailable), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Eike Petersen

This FEX submission appears to be a comprehensive and current solution to this problem: https://de.mathworks.com/matlabcentral/fileexchange/77275-matlabtoolboxcheck

Eike Petersen

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. This can be achieved by adding one additional line after "result = all(ismember(toolboxName,installedToolboxes));":

result = result && license('test', regexprep(toolboxName, ' ', '_'));

Guy Lavi

Was never really needed. Since 2006a there's license('test', TOOLBOX_NAME)

http://www.mathworks.com/help/matlab/ref/license.html

Franc Dimc

David MERCIER

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux