regmatlabserver - Register current MATLAB as COM server - MATLAB (original) (raw)
Main Content
Register current MATLAB as COM server
Syntax
Description
regmatlabserver
registers 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, call comserver.
MATLAB displays a minimized command window.
[[status](#busck69-status),[message](#busck69-message)] = regmatlabserver
returns the status and error message, if any, reported by the operating system.
Examples
Start MATLAB with the option.
At the MATLAB prompt, type:
[s,msg] = regmatlabserver
MATLAB successfully registered.
Output Arguments
MATLAB registration status returned as 0
or nonzero. If the attempt to register MATLAB is successful, status
is 0
. Otherwise, status
is nonzero.
System error message returned as a character vector if registration is unsuccessful.
Version History
Introduced before R2006a