Main Content

matlab::engine::terminateEngineClient

Free engine resources during run time

Description

void matlab::engine::terminateEngineClient()

Release all MATLAB® engine resources during run-time when you no longer need the MATLAB engine in your application program.

Note

Programs cannot start a new MATLAB engine or connect to a shared MATLAB session after calling terminateEngineClient.

Include

Namespace:

matlab::engine

Include

MatlabEngine.hpp

Examples

Terminate the engine session to free resources.

// Start MATLAB session
std::unique_ptr<MATLABEngine> matlabPtr = startMATLAB();
...
// Terminate MATLAB session
matlab::engine::terminateEngineClient();

Version History

Introduced in R2017b