freqz produces incorrect output
Søren Hauberg
soren at hauberg.org
Sun Jan 25 01:39:20 CST 2009
lør, 24 01 2009 kl. 19:57 -0500, skrev Ben Abbott:
> I look at a simple example.
>
> freqz (ones (20, 1), 1, 512, "half", 2)
I've never used this function before, so I don't know how it's supposed
to work, but I can compare with Matlab. I've posted the result of this
code at http://hauberg.org/freqz
> In the event, the problem is with FIR lengths > 512, I tried
>
> freqz (postpad (ones (20, 1), 768), 1, 512, "half", 2);
> freqz (prepad (ones (20, 1), 768), 1, 512, "half", 2);
>
Unfortunately, I cannot run this code in Matlab as it doesn't have
'postpad' and 'prepad'.
Søren
More information about the Bug-octave
mailing list