www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdev_local/BestModelString.m
function s= BestModelString(mdev) %BESTMODELSTRING string for display at the bottom of the model browser % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if isDeferred(mdev) s = sprintf('You deferred updating dependent model fits for %s. Use ''Update Fit'' to update all dependent fits.',fullname(mdev)); else ind= BMIndex(mdev); if ind==0 s='No two-stage model is selected.'; elseif mdev.IsLinearised if IsTimeVarying(mdev) s= 'Time-Varying Linearised Two-Stage Model.'; else s= 'Linearised Two-Stage Model.'; end else L= model(mdev); selrf= mdev.ResponseFeatures(ind,:)+RFstart(L); n= children(mdev,selrf,'name'); s= sprintf('%s, ',n{:}); s= s(1:end-2); if mle_best(mdev) st= children(mdev,'status'); if sum([st{:}]==2)~=size(L,1)+RFstart(L) s= 'MLE Model needs updating.'; else s= ['MLE Model with ',s]; s= [s ' is the best two-stage model.']; end else s= ['Univariate Model with ',s]; s= [s ' is the best two-stage model.']; end end end