Free engine resources during runtime
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
.
Namespace: | matlab::engine |
Include | MatlabEngine.hpp |
Terminate the engine session to free resources.
// Start MATLAB session std::unique_ptr<MATLABEngine> matlabPtr = startMATLAB(); ... // Terminate MATLAB session matlab::engine::terminateEngineClient();