view m-toolbox/classes/@unit/atan2.m @ 36:5eb86f6881ef
database-connection-manager
Remove commented-out code
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % ATAN2 implements atan2 operator for two unit objects
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: Implements atan2 operator for two unit objects.
+ − %
+ − % VERSION: $Id: atan2.m,v 1.2 2011/03/28 12:45:46 hewitson Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function v = atan2(v1, v2)
+ −
+ − if ~eq(v1, v2)
+ − error('### cannot compute atan2 for different units');
+ − end
+ −
+ − v = unit('rad');
+ −
+ − end