


NE overloads the ~= operator for timeformat objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: NE overloads the ~= operator for timeformat objects.
CALL: result = ne(tf1,tf2)
result = ne(tf1,tf2, exc_list)
result = ne(tf1,tf2, 'property1', 'property2')
result = ne(tf1,tf2, 'class/property', 'class/property')
INPUTS: tf1,tf2 - input timeformat objects
OUTPUTS: If the two timeformat objects are considered equal, result == 0,
otherwise, result == 1.
VERSION: $Id: ne.m,v 1.2 2008/01/15 17:36:36 ingo Exp $
HISTORY: 29-08-2007 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function result = ne(tf1, tf2, varargin) 0002 % NE overloads the ~= operator for timeformat objects. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: NE overloads the ~= operator for timeformat objects. 0007 % 0008 % CALL: result = ne(tf1,tf2) 0009 % result = ne(tf1,tf2, exc_list) 0010 % result = ne(tf1,tf2, 'property1', 'property2') 0011 % result = ne(tf1,tf2, 'class/property', 'class/property') 0012 % 0013 % INPUTS: tf1,tf2 - input timeformat objects 0014 % 0015 % OUTPUTS: If the two timeformat objects are considered equal, result == 0, 0016 % otherwise, result == 1. 0017 % 0018 % VERSION: $Id: ne.m,v 1.2 2008/01/15 17:36:36 ingo Exp $ 0019 % 0020 % HISTORY: 29-08-2007 M Hewitson 0021 % Creation 0022 % 0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 0025 VERSION = '$Id: ne.m,v 1.2 2008/01/15 17:36:36 ingo Exp $'; 0026 0027 % Check if this is a call for parameters 0028 if nargin == 2 0029 if isa(tf1, 'timeformat') && ischar(tf2) 0030 in = char(tf2); 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(tf1, tf2, varargin{:}) 0042 result = 0; 0043 else 0044 result = 1; 0045 end 0046 0047 % END