matlab::engine::startMATLABAsync - Start MATLAB asynchronously - MATLAB (original) (raw)

Main Content

Start MATLAB asynchronously

Description

FutureResult<std::unique_ptr<MATLABEngine>> startMATLABAsync(const std::vector<String>& options = std::vector<String>())

Start MATLABĀ® asynchronously in a separate process with optional MATLAB startup options.

Include

Namespace: matlab::engine
Include MatlabEngine.hpp

Parameters

Return Value

FutureResult<std::unique_ptr> A FutureResult object used to get the pointer to the MATLABEngine

Unsupported Startup Options

The engine does not support these MATLAB startup options:

For information on MATLAB startup options, see Commonly Used Startup Options.

Examples

expand all

Start MATLAB asynchronously and return a FutureResult object. Use the FutureResult to get a pointer to theMATLABEngine object.

FutureResult<std::unique_ptr<MATLABEngine>> matlabFuture = startMATLABAsync();
...
std::unique_ptr<MATLABEngine> matlabPtr = matlabFuture.get();

Version History

Introduced in R2017b