[SciPy-user] is there an easy way to extend/continuate a modulo function ?
Ryan May
rmay at ou.edu
Sun Apr 15 13:29:22 EDT 2007
Stef Mientki wrote:
> In comparing different filters, I plot the phase of the transfer function
>
> # calculate the transfer function
> h,w = signal.freqz ( filt_coeff[0], filt_coeff[1] )
> # calculate the phase angle
> w_Phase = arctan( imag(w) / real(w))
>
You could use arctan2 instead of arctan:
w_Phase = arctan2( imag(w), real(w))
Ryan
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
More information about the SciPy-User
mailing list