NE overloads the ~= operator for analysis objects. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: NE overloads the ~= operator for analysis objects. CALL: result = ne(c1,c2) result = ne(c1,c2, exc_list) result = ne(c1,c2, 'property1', 'property2') result = ne(c1,c2, 'class/property', 'class/property') result = ne(c1,c2, plist('Exceptions', 'exception-list')) PLIST: key: 'Exceptions' value: String or cell-array with exceptions. EXAMPLES: result = ne(c1,c2, 'name', 'created') result = ne(c1,c2, 'ao/name') INPUTS: c1,c2 - input analysis objects exc_list - exception list List of properties which are not checked. OUTPUTS: If the two analysis objects are considered equal, result == 0, otherwise, result == 1. VERSION: $Id: ne.m,v 1.8 2008/02/18 15:12:58 ingo Exp $ HISTORY: 29-08-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function result = ne(c1,c2, varargin) 0002 % NE overloads the ~= operator for analysis objects. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: NE overloads the ~= operator for analysis objects. 0007 % 0008 % CALL: result = ne(c1,c2) 0009 % result = ne(c1,c2, exc_list) 0010 % result = ne(c1,c2, 'property1', 'property2') 0011 % result = ne(c1,c2, 'class/property', 'class/property') 0012 % result = ne(c1,c2, plist('Exceptions', 'exception-list')) 0013 % 0014 % PLIST: key: 'Exceptions' 0015 % value: String or cell-array with exceptions. 0016 % 0017 % EXAMPLES: result = ne(c1,c2, 'name', 'created') 0018 % result = ne(c1,c2, 'ao/name') 0019 % 0020 % INPUTS: c1,c2 - input analysis objects 0021 % exc_list - exception list 0022 % List of properties which are not checked. 0023 % 0024 % OUTPUTS: If the two analysis objects are considered equal, result == 0, 0025 % otherwise, result == 1. 0026 % 0027 % VERSION: $Id: ne.m,v 1.8 2008/02/18 15:12:58 ingo Exp $ 0028 % 0029 % HISTORY: 29-08-2007 M Hewitson 0030 % Creation 0031 % 0032 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0033 0034 VERSION = '$Id: ne.m,v 1.8 2008/02/18 15:12:58 ingo Exp $'; 0035 CATEGORY = 'Relational Operator'; 0036 0037 %% Check if this is 'Params', 'Version' or 'Category' call 0038 if nargin == 2 0039 if isa(c1, 'ao') && ischar(c2) 0040 in = char(c2); 0041 if strcmp(in, 'Params') 0042 result = plist(); 0043 return 0044 elseif strcmp(in, 'Version') 0045 result = VERSION; 0046 return 0047 elseif strcmp(in, 'Category') 0048 result = CATEGORY; 0049 return 0050 end 0051 end 0052 end 0053 0054 if eq(c1,c2, varargin{:}) 0055 result = 0; 0056 else 0057 result = 1; 0058 end 0059