www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepset/ne.m
function ind = ne(A,B) %NE Not-equal-to operator for sweepsets % % NE(A, B) returns a logical array with the same length as there are % records in A, with true values where any values in a record are not % equal to the corresponding record in B. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. switch class(B) case 'sweepset' if all(size(A)==size(B)) ind = any(A.data ~= B.data, 2); else ind = false(numRecords(A),1); end case 'double' ind = any(A.data ~= B,2); otherwise ind = false(numRecords(A),1); end