Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.engine.engineName

Return name of shared MATLAB session

Syntax

name = matlab.engine.engineName

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

Was this topic helpful?