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

    function varargout= setFitOpt(m,Prop,Val)
%SETFITOPT set fit options for a model
%
% m = setFitOpt(m,Property,Value);
% setFitOpt(m,Property,Value);
% setFitOpt(m,om)


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

if nargin==2
	m.FitAlgorithm= Prop;
else
	m.FitAlgorithm= set(m.FitAlgorithm,Prop,Val);
end

if ~nargout && ~isempty(inputname(1));
	assignin('caller',inputname(1),m);
else
	varargout{1}= m;
end