help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use fir1 with 'scale'


From: Per Persson
Subject: Re: How to use fir1 with 'scale'
Date: Wed, 21 Jul 2004 12:59:34 +0200


On Jul 21, 2004, at 05:34, Joe Koski wrote:
 When I try

  b = fir1(nfilt,0.01,'low','hamming','scale');

I get an fir2 error "window must be of length n+1"

Anybody got an idea? Thanks.


Try: b = fir1(nfilt,0.01,'low', hamming(nfilt+1),'scale') instead.
(nfilt is the number of delays, not coeffs)

Don't know why passing just the window name doesn't work.

/Per



Joe Koski



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]