Main Content

matlab::engine::findMATLAB

Find shared MATLAB sessions synchronously

Description

std::vector<String> findMATLAB()

Find all shared MATLAB® sessions on the local machine.

Include

Namespace:

matlab::engine
IncludeMatlabEngine.hpp

Parameters

None

Return Value

std::vector<String>

A vector of the names of all shared MATLAB sessions on the local machine, or an empty vector if no shared MATLAB sessions are available

Exceptions

matlab::engine::EngineException

Throws exception if the call fails while searching for shared MATLAB sessions.

Examples

expand all

std::vector<String> names = findMATLAB();

Version History

Introduced in R2017b