MATLAB: How to launch a particular installation of MATLAB using the ACTXSERVER command in MATLAB 7.8 (R2009a)

MATLAB

I have 32- bit and 64-bit MATLAB installed on my 64-bit machine. I want to launch the 64-bit MATLAB COM server from MATLAB using the following command:
h=actxserver('Matlab.Application')

Best Answer

The ACTXSERVER command launches the last version of MATLAB that was registered.
To register your 64-bit MATLAB execute the following in your 64-bit MATLAB command prompt:
regmatlabserver
Once 64-bit MATLAB is registered, you will be able to launch the 64-bit MATLAB COM server from MATLAB using the following command:
h=actxserver('Matlab.Application')
Related Question