Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if matlab toolbox installed in matlab

Tags:

matlab

I am working on Matlab R2011a student edition. I want to run some demos provided in Matlab which require some toolbox like Embedded Coder and EDA Simulator Link.

I want to check if those toolboxes are installed in my current version of matlab and if yes how can I check if the licenses are valid.

The reference to this link didn't help me: How would one check for installed MATLAB toolboxes in a script/function? because I need at least the short name of those toolboxes like "control" states for "Control System Toolbox" by using the command ver control.

Any suggestion...

like image 622
sam Avatar asked Aug 03 '11 11:08

sam


People also ask

Can we install MATLAB toolbox later?

Documentation for all toolboxes are available a mathworks.com. Later you can install more toolboxes.


1 Answers

To check that the toolbox is installed, use

v = ver;
any(strcmp(toolboxName, {v.Name}))

where toolboxName is the name of the toolbox you want to check.

To check that the licence is valid, use

license('test', toolboxName)
like image 67
Richie Cotton Avatar answered Oct 14 '22 00:10

Richie Cotton