comparison m-toolbox/classes/@unit/atan2.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 % ATAN2 implements atan2 operator for two unit objects
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Implements atan2 operator for two unit objects.
5 %
6 % VERSION: $Id: atan2.m,v 1.2 2011/03/28 12:45:46 hewitson Exp $
7 %
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
10 function v = atan2(v1, v2)
11
12 if ~eq(v1, v2)
13 error('### cannot compute atan2 for different units');
14 end
15
16 v = unit('rad');
17
18 end