Handle to running instance of MATLAB Automation server



c = actxGetRunningServer(progid) gets a reference to a running instance of the OLE Automation server. Returns a handle to the default interface of the server.

If the server specified by progid is not currently running or if the server object is not registered, then the function returns an error. If multiple instances of the server are running, then the operating system controls the behavior of this function.


collapse all

c = actxGetRunningServer('Excel.Application');
list = fieldnames(c);

Input Arguments

collapse all

Programmatic identifier, specified as a string or a character vector.

The server vendor documentation specifies the ProgID. For MATLAB® progid values, see Programmatic Identifiers.

Example: 'Matlab.Application'

Output Arguments

collapse all

COM object, returned as a function handle.


  • COM functions are available on Microsoft® Windows® systems only.

Introduced in R2007a