Main Content

matlab::engine::terminateEngineClient

Free engine resources during runtime

Description

void matlab::engine::terminateEngineClient()

Release all MATLAB® engine resources during runtime 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();
Introduced in R2017b