MATLAB: Is it possible for clients to be able to connect to an existing MATLAB automation server

MATLAB

I would like to have clients connect to an existing MATLAB automation server. When I specifiy "matlab /automation", I see only the MATLAB command window when trying to invoke MATLAB from Visual Basic .NET. However, I would like to see the complete MATLAB desktop layout.

Best Answer

To have the COM interface to an existing MATLAB session with desktop layout, you will have to initiate MATLAB in the 'desktop /automation' mode. The syntax to use is
matlab -desktop /automation
You can issue this command from
1. the $MATLAB/bin/win32 directory ($MATLAB being the output obtained by typing matlabroot at the MATLAB command prompt)
OR
2. the DOS shell
cd $MATLAB/bin/win32
matlab -desktop /automation
Yet another way to specify it is from the Target field of the MATLAB shortcut icon.
1. Right-click on your shortcut to MATLAB.
2. Select Properties.
3. Click on the Shortcut tab.
4. Add the string "-desktop /automation" in the Target field.