www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@linearmodelproperties/linearmodelproperties.m

    function obj = linearmodelproperties( varargin )
%LINEARMODELPROPERTIES class constructor
%
%  MBCMODEL.LINEARMODELPROPERTIES( OWNER ) constructs a polynomial
%  properties object for the model OWNER.
%
%  This class should not be created directly. To create a instance of this
%  class, first create a model, e.g.,
%     hModel = mbcmodel.CreateModel( 'Polynomial', 2 );
%  and then get the properties object from that model,
%     hProperties = hModel.Properties;
%
%  See also mbcmodel.modelproperties.

%  Copyright 2006 The MathWorks, Inc.

% Is the first input argument a udd object derived from me? If it is then
% we are being called as a super class constructor and don't have to
% construct an object
if nargin && isa(varargin{1}, 'mbcmodel.linearmodelproperties')
	obj = varargin{1};
	varargin(1) = [];
else
	obj = mbcmodel.linearmodelproperties;
end

% Call the inherited constructor
obj = modelproperties(obj,varargin{:});

% alias fields for obsolete properties
obj.Alias.TermStatus = 'StepwiseStatus';
obj.Alias.TermLabels = 'ParameterNames';