www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevmlerf/updateInputs.m
function mdev= updateInputs(mdev,mnew,doRefit) %UPDATEINPUTS update input information % % T= updateInputs(T,mnew,doRefit) % mnew: the coding and symbol information from this model is used to % update the modeldev node % doRefit: refit models (default= false) % Copyright 2006 The MathWorks, Inc. if nargin<3 doRefit= false; end if ~doRefit % update mle m= mdev.Model; if isa(mnew,'xregtwostage') && ~isa(m,'xregtwostage') % need to extract global model mnew= get(mnew,'baseglobal'); end % apply to underlying mdev.Model = updateInputs(mdev.Model,mnew); % undo mle and apply to underlying mdev.modeldev= updateInputs(mdev.modeldev,mnew,doRefit); xregpointer(mdev); else % undo mle and apply to underlying mdev= updateInputs(mdev.modeldev,mnew,doRefit); end