view m-toolbox/classes/+utils/@math/phase.m @ 19:69e3d49b4b0c database-connection-manager

Update ltpda_uo.fromRepository
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% PHASE return the phase in degrees for a given complex input.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% DESCRIPTION: PHASE return the phase in degrees for a given complex
%              input. Supposed to be analogous to angle but return degrees
%              instead of radians.
%
% CALL:       p = phase(resp)
%
% INPUTS:     resp - complex number
%
% OUTPUTS:    p    - phase
%
% VERSION: $Id: phase.m,v 1.2 2008/09/25 11:10:35 ingo Exp $
%
% HISTORY: dd-mm-yyyy M Hewitson
%             Creation
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function p = phase(resp)

  p = angle(resp)*180/pi;

end