[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use fir1 with 'scale'
From: |
Joe Koski |
Subject: |
Re: How to use fir1 with 'scale' |
Date: |
Wed, 21 Jul 2004 09:25:41 -0600 |
User-agent: |
Microsoft-Entourage/10.1.4.030702.0 |
on 7/21/04 4:59 AM, Per Persson at address@hidden wrote:
>
> 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.
That fixed the problem. Thanks.
Joe
>
> /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
> -------------------------------------------------------------
>
-------------------------------------------------------------
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
-------------------------------------------------------------