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

    function OK = isequal(obj1,obj2)
%ISEQUAL test for equal inputs
%
% OK = isequal(c1,c2)

%  Copyright 2007 The MathWorks, Inc. 

OK = isequal(size(obj1),size(obj2));
if OK
    for i = 1:length(obj1)
        c1 = obj1(i);
        c2 = obj2(i);
        OK = OK && isequallabels(c1,c2) && ...
            isequal(c1.Range , c2.Range) && ...
            strcmp(char(c1.NonlinearTransform),char(c2.NonlinearTransform));
    end
end