Quit MATLAB engine session
#include "engine.h" int engClose(Engine *ep);
#include "engine.h" integer*4 engClose(ep) mwPointer ep
0 on success, and
Possible failure includes attempting to terminate an already-terminated MATLAB® engine
This routine sends a quit command to the MATLAB engine session and closes the connection.
See these examples in