Reputation: 25
I would like to know if the MCR Matlab is installed on the pc from Matlab code. How can I do? Is there a way to know this? Can I find a specified key in Windows registries?
Thank anyone can help me...
Upvotes: 0
Views: 298
Reputation: 36710
If you want to check outside matlab or your deployed m-code if MCR is available, search for a mclmcrrt*.dll
in the list of registered DLLs.
Upvotes: 1
Reputation: 112659
To know if a toolbox is installed, use ver
with the toolbox folder name as input argument. For example:
name = 'images'; %// name of toolbox folder
s = ver(name);
This gives you a structure s
:
s =
Name: 'Image Processing Toolbox'
Version: '7.1'
Release: '(R2010b)'
Date: '03-Aug-2010'
If s
is non-empty (~isempty(s)
), the toolbox is installed.
Now you only have to find out the name of the MCR folder (maybe 'MCR'
or 'compiler'
?). You can find it out from a Matlab installation that includes the MCR.
Upvotes: 0