comparison m-toolbox/classes/+utils/@math/unwrapdeg.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 % UNWRAPDEG Unwrap a phase vector given in degrees.
2 %
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % DESCRIPTION: UNWRAPDEG Unwrap a phase vector given in degrees.
6 %
7 % CALL: deg = unwrapdeg(phase)
8 %
9 % INPUTS: phase - phase vector
10 %
11 % OUTPUTS: deg - degrees vector
12 %
13 % VERSION: $Id: unwrapdeg.m,v 1.2 2008/10/24 06:19:23 hewitson Exp $
14 %
15 % HISTORY: 26-01-2007 M Hewitson
16 % Creation
17 %
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19
20 function deg = unwrapdeg(phase)
21 deg = unwrap(phase*pi/180)*180/pi;
22 end
23 % END