www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdev_local/MBsupport.m
function supp=MBsupport(mdev,supp) % MBsupport set MBrowser supported options % % supp=MBsupport(supp) % % supp is a structure of options % % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. View = GetViewData(MBrowser); % Check for new model allowed supp.newmodel=~isPointByPoint(mdev); supp.print=1; TS= BestModel(mdev); if mdev.IsLinearised supp.newmodel=0; end supp.validate= canGTS(mdev); supp.export = any(mdev.FitOK); if isfield(View,'SweepPos') && View.SweepPos<=length(mdev.FitOK) supp.evaluate= mdev.FitOK(View.SweepPos); else % use test 1 supp.evaluate= mdev.FitOK(1); end supp.MLE= canMLE(mdev); supp.AssignBest= ~isempty(TS); supp.BuildModels= numChildren(mdev)>0 && BMIndex(mdev)~=2; if isPointByPoint(mdev) supp.helptopics = {'&Point-by-Point Model Help','xreg_pointbypointmodelview'}; else supp.helptopics = {'&Local Model Help','xreg_localModelView'}; end