Main Content

matlab.engine.engineName

Return name of shared MATLAB session

Description

name = matlab.engine.engineName returns the name of the MATLAB® session if the session is shared. Otherwise, matlab.engine.engineName returns the empty value ''.

example

Examples

collapse all

Share the MATLAB session and return its name.

matlab.engine.shareEngine('Engine_1')
name = matlab.engine.engineName
name =

Engine_1

Version History

Introduced in R2015b