Register MATLAB as Automation Server

When to Register MATLAB

When you install a new version of MATLAB®,MATLAB automatically registers this version as an Automation server. You might have multiple versions of MATLAB installed on your system, but only one version is registered. This version remains registered until you install a new MATLAB or you register a different version.

If the registered version of MATLAB is not the preferred version, then choose one of these techniques.

You must have administrator privileges to change the Windows® registry. Based on your User Account Control (UAC) settings, you might need to right-click the Windows Command Processor or the MATLAB icon and select Run as administrator. If that option is not available, contact your system administrator.

If MATLAB is unable to update the registry, it still displays a new minimized command window. Open this window and exit MATLAB.

Register from System Prompt

To register MATLAB as an Automation server from the Windows system prompt, first open a Windows Command Processor using the Run as administrator option, if necessary.

Move to the folder containing the executable file for the MATLAB version you want.

cd matlabroot\bin\arch
If you do not use this folder, the matlab command starts the first instance of MATLAB on the system path.

matlab -regserver
MATLAB displays a minimized command window. Open this window and exit MATLAB.

Register from MATLAB Command Prompt

To register MATLAB as an Automation server from within MATLAB, first start MATLAB with the Run as administrator option, if necessary. When you run this command, you register this version of MATLAB.

regmatlabserver

MATLAB displays a minimized command window. Restore this window and exit MATLAB.

Unregister MATLAB as Automation Server

At the operating system prompt, navigate to the MATLAB folder as described in Register from System Prompt and type:

matlab -unregserver

See Also

|

Related Topics