view m-toolbox/classes/+utils/@math/unwrapdeg.m @ 7:1e91f84a4be8 database-connection-manager

Make ltpda_up.retrieve work with java.sql.Connection objects
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% 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