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

    function is= isNested(m);
% MODEL/ISNESTED tests whether the model is nested

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



nl= numNLParams(m);
n= numParams(m);
% has less nonlinear parameters than total number of parameters
is= nl>=1 & nl<n;