Matlab
Constructor for Matlab class.
Matlab( BOOL bAttach = TRUE, BOOL bSingle = FALSE, BOOL bKeepMatlabRunning = FALSE )
EX1
//Assumes Matlab version R12 or greater is installed on client's computer (DCOM not tested) #include <ExternApps.h> void Matlab_Matlab_ex1() { Matlab matObj0(FALSE); //Use to create Origin C Matlab object without connecting to Matlab. matObj0.Attach(); //To actually connect to Matlab, Attach() have to be called. if(!matObj0) { out_str("No Matlab found !!!!!"); return; } //output string "No Matlab found !!!!!" if communication is not established }
Constructor for Matlab class. It will connect to Matlab if called with default argument(TRUE).
Matlab::Attach
ExternApps.h