MatlabEngine.connect

MatlabEngine.connect(name=None)[source]

Connect to an existing Matlab session, or start a new session if none exists.

Parameters

name (str) – The name of the session. Default is None. If None, attempt to connect to an existing session, or create a new session if none exists.

Examples

>>> m = MatlabClient()
>>> m.connect()
>>> m.connect(name='test')