Attach
Establishes connection to Matlab.
BOOL Attach( BOOL bUseRunningInstance = TRUE, BOOL bSingle = FALSE, BOOL bKeepMatlabRunning = FALSE )
Returns TRUE if connection is being made, FALSE otherwise.
EX1
#include <ExternApps.h> void Matlab_Attach_ex1() { Matlab matObj; if ( !matObj.Attach() ) return; //return if connection can not be made matObj.Attach(FALSE); //Establish new connection destroying any previous connection first }
Matlab::Detach
ExternApps.h