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

    function DoRefit = NeedsRefit(obj1,obj2)
%NEEDSREFIT 
%
% doRefit = NeedsRefit(obj1,obj2)

%  Copyright 2007 The MathWorks, Inc. 

if isequal(size(obj1),size(obj2))
    DoRefit = false;
    for i=1:length(obj1)
        c1 = obj1(i);
        c2 = obj2(i);
        DoRefit = DoRefit || ~strcmp(c1.NonlinearTransform,c2.NonlinearTransform);
        DoRefit = DoRefit || (all(isfinite(c1.Target)) && ~isequal(c1.Range , c2.Range));
    end
else
    DoRefit = true;
end