MATLAB: Selecting Version for COM server

activexcom serversMATLABmatlab automation

Is there a way to select which version of a program an activex server should start up?
For instance for Matlab, if I want to get 2010b is there a way I can
h = actxserver('matlab.application','version','7.11.0.584');
even if I have 2 or more different versions of Matlab installed?

Best Answer

According to the matlab documentation:
"Matlab.Application — Starts a command window Automation server with the version of MATLAB that was most recently used as an Automation server (might not be the latest installed version of MATLAB)."
Hence I believe you cannot control the version of Matlab which will be executed.
But there is one way with which you can always invoke most recent version of matlab i.e. to use "Matlab.Autoserver" as progid.
Hope this helps!!!