


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')
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.6 2007/11/23 12:11:08 ingo Exp $
HISTORY: 29-08-2007 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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