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. COMMENT: This is just a wrapper to call ltpda_phase. CALL: p = phase(resp) INPUTS: resp - complex number OUTPUTS: p - phase VERSION: $Id: phase.html,v 1.7 2008/03/31 10:27:31 hewitson Exp $ HISTORY: dd-mm-yyyy M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function p = phase(resp) 0002 % PHASE return the phase in degrees for a given complex input. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: PHASE return the phase in degrees for a given complex 0007 % input. Supposed to be analogous to angle but return degrees 0008 % instead of radians. 0009 % 0010 % COMMENT: This is just a wrapper to call ltpda_phase. 0011 % 0012 % CALL: p = phase(resp) 0013 % 0014 % INPUTS: resp - complex number 0015 % 0016 % OUTPUTS: p - phase 0017 % 0018 % VERSION: $Id: phase.html,v 1.7 2008/03/31 10:27:31 hewitson Exp $ 0019 % 0020 % HISTORY: dd-mm-yyyy M Hewitson 0021 % Creation 0022 % 0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 0025 p = ltpda_phase(resp); 0026 0027 % END