www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@modeldev/hasBest.m
function has= hasBest(mdev); % MODELDEV/HASBEST % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. n= numChildren(mdev); bm= mdev.BestModel; switch guid(mdev) case 'global' has= (n==0 | (~isempty(bm) & bm~=0)); case 'twostage' has= (n~=0 & (~isempty(bm) & bm~=0)); end