comparison m-toolbox/classes/+utils/@math/deg2rad.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 % DEG2RAD Convert degrees to radians
2 %
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % DESCRIPTION: DEG2RAD Convert degrees to radians
6 %
7 % CALL: r = deg2rad(deg, min, sec)
8 %
9 % INPUTS: deg - degrees
10 % min - minutes
11 % sec - seconds
12 %
13 % OUTPUTS: r - radians
14 %
15 % VERSION: $Id: deg2rad.m,v 1.2 2008/10/24 06:19:23 hewitson Exp $
16 %
17 % HISTORY: 26-01-2007 M Hewitson
18 % Creation
19 %
20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21
22 function r = deg2rad(deg, min, sec)
23 r = (deg + min/60 + sec/3600)*pi/180;
24 end
25