view 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 (2011-11-23)
parents
children
line source
+ − % NE overloads the ~= operator for ltpda unit objects.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: NE overloads the ~= operator for ltpda unit objects.
+ − %
+ − % Two units are considered NOT equal if one unit have not the
+ − % same components as the other one. The order of the units
+ − % doesn't matter.
+ − %
+ − % CALL: result = ne(u1,u2)
+ − %
+ − % INPUTS: u1, u2 - Input objects
+ − %
+ − % OUTPUTS: If the two objects are considered NOT equal, result == true,
+ − % otherwise, result == false.
+ − %
+ − % VERSION: $Id: ne.m,v 1.4 2011/02/18 16:48:55 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function result = ne(obj1, obj2, varargin)
+ −
+ − if eq(obj1, obj2, varargin{:})
+ − result = false;
+ − else
+ − result = true;
+ − end
+ − end
+ −