


NE overloads the ~= operator for history objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: NE overloads the ~= operator for history objects.
CALL: result = ne(h1,h2)
result = ne(h1,h2, 'property1', 'property2')
result = ne(h1,h2, 'class/property', 'class/property')
INPUTS: h1,h2 - input history objects
OUTPUTS: If the two history objects are considered equal, result == 0,
otherwise, result == 1.
VERSION: $Id: ne.m,v 1.2 2007/12/05 16:26:22 ingo Exp $
HISTORY: 29-08-2007 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function result = ne(w1,w2, varargin) 0002 0003 % NE overloads the ~= operator for history objects. 0004 % 0005 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0006 % 0007 % DESCRIPTION: NE overloads the ~= operator for history objects. 0008 % 0009 % CALL: result = ne(h1,h2) 0010 % result = ne(h1,h2, 'property1', 'property2') 0011 % result = ne(h1,h2, 'class/property', 'class/property') 0012 % 0013 % INPUTS: h1,h2 - input history objects 0014 % 0015 % OUTPUTS: If the two history objects are considered equal, result == 0, 0016 % otherwise, result == 1. 0017 % 0018 % VERSION: $Id: ne.m,v 1.2 2007/12/05 16:26:22 ingo Exp $ 0019 % 0020 % HISTORY: 29-08-2007 M Hewitson 0021 % Creation 0022 % 0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 0025 VERSION = '$Id: ne.m,v 1.2 2007/12/05 16:26:22 ingo Exp $'; 0026 0027 % Check if this is a call for parameters 0028 if nargin == 2 0029 if isa(w1, 'history') && ischar(w2) 0030 in = char(w2); 0031 if strcmp(in, 'Params') 0032 result = plist; 0033 return 0034 elseif strcmp(in, 'Version') 0035 result = VERSION; 0036 return 0037 end 0038 end 0039 end 0040 0041 if eq(w1, w2, varargin{:}) 0042 result = 0; 0043 else 0044 result = 1; 0045 end 0046 0047 % END