diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/+utils/@math/unwrapdeg.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,23 @@
+% UNWRAPDEG Unwrap a phase vector given in degrees.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: UNWRAPDEG Unwrap a phase vector given in degrees.
+%
+% CALL:       deg = unwrapdeg(phase)
+%
+% INPUTS:     phase - phase vector
+%
+% OUTPUTS:    deg   - degrees vector
+%
+% VERSION: $Id: unwrapdeg.m,v 1.2 2008/10/24 06:19:23 hewitson Exp $
+%
+% HISTORY: 26-01-2007 M Hewitson
+%             Creation
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function deg = unwrapdeg(phase)
+  deg = unwrap(phase*pi/180)*180/pi;
+end
+% END