Show
Ignore:
Timestamp:
01/05/10 22:19:49 (14 years ago)
Author:
smidl
Message:

cleanups & stuff for SYSID like estimation

Location:
applications/bdmtoolbox/mex
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/mex/estimator.cpp

    r756 r760  
    122122        int Ndat=10; 
    123123        if ( Cfg.exists ( "experiment" ) ) { 
    124                 if ( Cfg.getRoot().lookupValue ( "experiment.ndat",Ndat ) ) { 
     124                if (  UI::get(Ndat, Cfg.getRoot()["experiment"],"ndat" ) ) { 
    125125                        bdm_assert ( Ndat<=Ds->max_length(), "Data source has less data then required" ); 
    126126                }; 
     
    209209                if ( n_output<1 ) mexErrMsgTxt ( "Wrong number of output variables!" ); 
    210210                output[0] = mL->toCell(); 
    211                 if (n_output>1)  
     211                if (n_output>1) { 
     212                        mL->_setting_conf().setAutoConvert(true); 
    212213                        output[1]= UImxArray::create_mxArray(mL->_setting_conf().getRoot()); 
     214                } 
    213215        } 
    214216#endif 
  • applications/bdmtoolbox/mex/merger.cpp

    r756 r760  
    145145                output[0] = tmp; 
    146146        } 
     147        if (n_output>1){ 
     148                Config C; 
     149                C.setAutoConvert(true); 
     150                UI::save(&(Merger->_Smp()),C.getRoot()); 
     151                output[1]= UImxArray::create_mxArray(C.getRoot()); 
     152        } 
    147153#endif 
    148154}