comparison m-toolbox/classes/@unit/ne.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % NE overloads the ~= operator for ltpda unit objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: NE overloads the ~= operator for ltpda unit objects.
5 %
6 % Two units are considered NOT equal if one unit have not the
7 % same components as the other one. The order of the units
8 % doesn't matter.
9 %
10 % CALL: result = ne(u1,u2)
11 %
12 % INPUTS: u1, u2 - Input objects
13 %
14 % OUTPUTS: If the two objects are considered NOT equal, result == true,
15 % otherwise, result == false.
16 %
17 % VERSION: $Id: ne.m,v 1.4 2011/02/18 16:48:55 ingo Exp $
18 %
19 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20
21 function result = ne(obj1, obj2, varargin)
22
23 if eq(obj1, obj2, varargin{:})
24 result = false;
25 else
26 result = true;
27 end
28 end
29