Changeset 796 for applications/bdmtoolbox/mex
- Timestamp:
- 01/29/10 19:56:45 (15 years ago)
- Location:
- applications/bdmtoolbox/mex
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/epdf_mean.cpp
r756 r796 28 28 shared_ptr<epdf> ep=UI::build<epdf>(Cfg); 29 29 30 31 if ( n_output<1 ) mexErrMsgTxt ( "No output - nothing to do!" ); 32 output[0] = mxCreateDoubleMatrix(ep->dimension(), 1, mxREAL); 33 vec2mxArray(ep->mean(), output[0]); 30 if (ep){ 31 //if ( n_output<1 ) mexErrMsgTxt ( "No output - nothing to do!" ); 32 output[0] = mxCreateDoubleMatrix(ep->dimension(), 1, mxREAL); 33 vec2mxArray(ep->mean(), output[0]); 34 } else { 35 mexErrMsgTxt ( "Given object is not epdf" ); 36 } 34 37 } 35 38 #endif -
applications/bdmtoolbox/mex/epdf_variance.cpp
r761 r796 27 27 28 28 shared_ptr<epdf> ep=UI::build<epdf>(Cfg); 29 30 if (ep) { 31 output[0] = mxCreateDoubleMatrix(ep->dimension(), 1, mxREAL); 32 vec2mxArray(ep->variance(), output[0]); 33 } else { 34 mexErrMsgTxt ( "Given object is not epdf" ); 35 } 29 36 30 31 if ( n_output<1 ) mexErrMsgTxt ( "No output - nothing to do!" );32 output[0] = mxCreateDoubleMatrix(ep->dimension(), 1, mxREAL);33 vec2mxArray(ep->variance(), output[0]);34 37 } 35 38 #endif