Main Content

regmatlabserver

Register currentMATLABas COM server

Description

regmatlabserverregisters the current MATLAB®executable as a COM Automation server. You must run MATLAB as an administrator to use this function. To register MATLAB as a COM server in the local user account, callcomserver.

MATLAB displays a minimized command window.

example

[status,message] = regmatlabserverreturns the status and error message, if any, reported by the operating system.

Examples

collapse all

Start MATLAB with theRun as administratoroption.

At the MATLAB prompt, type:

[s,msg] = regmatlabserver
s = 0 msg = ''

MATLAB successfully registered.

Output Arguments

collapse all

MATLAB registration status returned as0or nonzero. If the attempt to register MATLAB is successful,statusis0. Otherwise,statusis nonzero.

System error message returned as a character vector if registration is unsuccessful.

Version History

Introduced before R2006a