Detach
Destroys the connection with Matlab
BOOL Detach( )
Returns TRUE if connection is being destroyed, FALSE if the operation failed.
EX1
#include <ExternApps.h> void Matlab_Detach_ex1() { Matlab matObj; matObj.Attach(); //establish the connection matObj.Detach(); //destroys the connection }
Matlab::Attach
ExternApps.h