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

    function m = model(xsm, newm)
%MODEL Internal function to access the underlying model
%
%  XM = MODEL(M) returns the xregmodel that is underlying the
%  xregStatsModel M.
%
%  M = MODEL(M, XM) replaces the underying xregmodel with a new one, XM.

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

if nargin==1
    m = xsm.mvModel;
else
    xsm.mvModel = newm;
    m = xsm;
end