Main Content

matlab.engine.engineName

Return name of shared MATLAB session

Description

example

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

Examples

collapse all

Share the MATLAB session and return its name.

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

Engine_1
Introduced in R2015b