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

    function d=designobj(m,opt)
% DESIGNOBJ  Return an appropriate design object
%
%   D=DESIGNOBJ(M) returns a design object of the appropriate
%   type, loaded with the model M
%
%   D=DESIGNOBJ(M,'classname') returns the classname of the design
%   object for the model.  This is used to avoid recursion in
%   xregdesign/model.
%

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




if nargin>1 & strcmp(opt,'classname')
   d='des_linearmod';
else
   d=des_linearmod('nfactors',nfactors(m));
   d=model(d,m);
   d=name(d,'Linear Model Design');
end
return