Changeset 756 for applications/bdmtoolbox/mex/epdf_sample_mat.cpp
- Timestamp:
- 12/28/09 17:02:37 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/epdf_sample_mat.cpp
r730 r756 24 24 RV::clear_all(); 25 25 //CONFIG 26 if (!mxIsStruct(input[0])) mexErrMsgTxt("Given input is not a struct."); 26 UImxArray Cfg(input[0]); 27 Cfg.writeFile("epdf_sample_mat.cfg"); 28 shared_ptr<epdf> ep=UI::build<epdf>(Cfg); 27 29 28 30 int nos=10; 29 if (n_input>1) {nos = (int)(*mxGetPr(input[1]));} 30 31 UImxArray Cfg(input[0]); 32 Cfg.writeFile("epdf_sample_mat.cfg"); 33 34 shared_ptr<epdf> ep=UI::build<epdf>(Cfg.getRoot()); 31 if (n_input>1) {nos = (int)(*mxGetPr(input[1]));} 35 32 36 33 if ( n_output<1 ) mexErrMsgTxt ( "No output - nothing to do!" );