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