I'm trying to make a frequency response of that function:
in matlab a made this:
d=[1 -0.494 0.6404]; p=[1 1.58567330897 0.96]; [h,w] = freqz(p,d,40000); z = abs(h); plot(w/pi,z);
as you can see the peak of magnitude is 2 and not about 6.5. '-' What am I doing wrong? H2 has an abs 1 because it is a all pass filter.