LTPDA_PHASE return the phase in degrees for a given complex input. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_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 = ltpda_phase(resp) INPUTS: resp - complex number OUTPUTS: p - phase VERSION: $Id: ltpda_phase.html,v 1.14 2008/03/31 10:27:31 hewitson Exp $ HISTORY: dd-mm-yyyy M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function p = ltpda_phase(resp) 0002 % LTPDA_PHASE return the phase in degrees for a given complex input. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: LTPDA_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 % CALL: p = ltpda_phase(resp) 0011 % 0012 % INPUTS: resp - complex number 0013 % 0014 % OUTPUTS: p - phase 0015 % 0016 % VERSION: $Id: ltpda_phase.html,v 1.14 2008/03/31 10:27:31 hewitson Exp $ 0017 % 0018 % HISTORY: dd-mm-yyyy M Hewitson 0019 % Creation 0020 % 0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0022 0023 p = angle(resp)*180/pi; 0024 0025 % END