【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.2.1.7 Matlab::Matlab
Contents
Description
Constructor for Matlab class.
Syntax
Matlab( BOOL bAttach = TRUE, BOOL bSingle = FALSE, BOOL bKeepMatlabRunning = FALSE )
Parameters
- bAttach
- bSingle
- bKeepMatlabRunning
Return
Examples
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 }
Remark
Constructor for Matlab class. It will connect to Matlab if called with default argument(TRUE).
See Also
Header to Include
ExternApps.h