enableservice
Enable, disable, or report status ofMATLABAutomation server
Description
enableservice('AutomationServer',
enables or disables the MATLAB®Automation server. Ifenable
)enable
istrue
(logical1
),enableservice
converts an existing MATLAB session into an Automation server. Ifenable
isfalse
(logical0
),enableservice
disables the MATLAB Automation server.
This function is equivalent to calling this MATLAB startup command at the Windows operating system prompt:
matlab -automation
COM functions are available on Microsoft®Windows®systems only.
state = enableservice('AutomationServer')
returns the current state of the Automation server. Ifstate
is logical1
(true
), MATLAB is an Automation server.