Main Content

matlab::engine::startMATLABAsync

StartMATLABasynchronously

Description

FutureResult> startMATLABAsync(const std::vector& options = std::vector())

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

Include

Namespace:

matlab::engine
Include MatlabEngine.hpp

Parameters

const std::vector& options

Startup options used to launch MATLAB. You can specify multiple startup options. The engine supports all MATLAB startup options, except for the options listed inUnsupported Startup Options. For a list of options, see the platform-specific commandmatlab (Windows),matlab (macOS), ormatlab (Linux).

Return Value

FutureResult>

AFutureResult对象用于获取指针theMATLABEngine

Examples

expand all

Start MATLAB asynchronously and return aFutureResultobject. Use theFutureResultto get a pointer to theMATLABEngineobject.

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

Version History

Introduced in R2017b