[SciPy-User] Bug in freqz returning angular frequency and frequency response in backward order
Wed Aug 29 05:35:55 CDT 2012
On Wed, Aug 29, 2012 at 12:20 AM, Jeffrey Spencer <email@example.com>wrote:
> The freqz function appears to return the frequency values and the
> frequency response backwards. Like it is supposed to return in the order
> (h,w) but it actually returns in the order (w,h).
> This can even be seen in the documentation here:
freqz and freqs both return (w, h), which is correct.
The mistake is in the example in the docstring for freqz. The line:
>>> h, w = signal.freqz(b)
>>> w, h = signal.freqz(b)
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User