freqz produces incorrect output
John W. Eaton
jwe at octave.org
Wed Feb 4 10:38:22 CST 2009
On 2-Feb-2009, Ben Abbott wrote:
| I had hoped to get to this sooner.
|
| Please review the attached changeset for freqz.m. I made a simple
| addition to Frederick's work that ensures a causal phase delay when
| there are not output arguments (which results in a figure being
| rendered).
|
| I've compared the two examples below to the result Søren obtained
| using Matlab.
|
| freqz ([ones(1, 20), zeros(1, 768-20)], 1, 512, "half", 2);
|
| freqz ([zeros(1, 768-20), ones(1, 20)], 1, 512, "half", 2);
|
| The result Søren obtained running Matlab is still here; http://hauberg.org/freqz
I applied the changeset.
Thanks,
jwe
More information about the Bug-octave
mailing list