www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregtwostage/checkmodel.m

    function OK= checkmodel(TS)
% XREGTWOSTAGE/CHECKMODEL

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.




OK= checkmodel(TS.Local);

for i=1:length(TS.Global)
	OK= checkmodel(TS.Global{i});
end

if isa(TS.datum,'xregmodel')
	OK= checkmodel(TS.datum);
end