Hello,

I think there is a bug in the fir1 function in signal-1.0.11 (and probably
also in 1.1.1 because I don't see significant changes in the code). The
problem is that single-band lowpass filters returned by fir1 don't have a
DC gain of 1. For example:

octave-3.2.4:1> sum(fir1(240,0.01))
ans =  1.1822

That should return 1 (with low-order filters the problem is not so obvious).

Regards

Alberto Cuadrado
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to