Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Failed to create a bandpass filter (coefficients must be finite)

499 views
Skip to first unread message

Sebastian Gatzka

unread,
Jul 29, 2011, 12:19:11 PM7/29/11
to
Hello World.

I'm stuggeling to create a bandpass filter for my data.
I have successfully designed lowpass FIR filters with fdatool but fail to create a bandpass.

I have data sampled with 500000 Hz and I am interested in the frequency range from
90 Hz to 290 Hz. I choose a bandpass, FIR, equiripple filter with the approriate entries in the fdatool.

After calculating for hours the tool stopped working with the error message, that coefficients must be finite.

I have no idea what this means and obviously not enought knowledge about bandpass filters either.

What will be the best strategy to create such a filter?!

Thanks in advance.
Sebastian

Wayne King

unread,
Jul 29, 2011, 12:35:33 PM7/29/11
to
"Sebastian Gatzka" <sebastian.g...@stud.tu-darmstadt.de> wrote in message <j0umhv$2c8$1...@newscl01ah.mathworks.com>...

Hi Sebastian, What are your Fstop frequencies and your Apass and Astop settings?

Wayne

Sebastian Gatzka

unread,
Jul 29, 2011, 1:55:29 PM7/29/11
to
"Wayne King" <wmki...@gmail.com> wrote in message <j0ungl$51b$1...@newscl01ah.mathworks.com>...

>
> Hi Sebastian, What are your Fstop frequencies and your Apass and Astop settings?
>
> Wayne

Fs = 500e3

Fstop1 = 80
Fpass1 = 96
Fstop2 = 272
Fpass2 = 288

Dstop1 = 0.001 (AStop1 = 60)
Dpass = 1 (Apass =
Dstop2 = 0.001 (Astop2 = 80)

Hope this helps!

Sebastian

Wayne King

unread,
Jul 29, 2011, 5:27:13 PM7/29/11
to
"Sebastian Gatzka" <sebastian.g...@stud.tu-darmstadt.de> wrote in message <j0us6h$hs5$1...@newscl01ah.mathworks.com>...

Hi Sebastian, Those are very stringent requirements for an FIR equripple filter. You have a very high sampling frequency, so your passband is very narrow with respect to your frequency interval. Then your stopband frequencies are very close to the passband frequencies (I think you have a typo on your Fpass2 and Fstop2) for the amout of attenuation you want.

A couple things, do you really need a bandpass, or can you just lowpass everything 290 Hz?

Also, how about downsampling the data? If you really want to end up with just everything between 90 and 290 Hz, then 500 kHz is way oversampled.

Wayne

Sebastian Gatzka

unread,
Aug 7, 2011, 7:48:07 AM8/7/11
to
"Wayne King" <wmki...@gmail.com> wrote in message <j0v8jh$lfo$1...@newscl01ah.mathworks.com>...

Ok I think a lowpass filter will do pretty good.
My experience was that it takes hours to desing one, right?

Wayne King

unread,
Aug 7, 2011, 9:58:12 AM8/7/11
to
"Sebastian Gatzka" <sebastian.g...@stud.tu-darmstadt.de> wrote in message <j1lu1n$cma$1...@newscl01ah.mathworks.com>...

Hi, It should not unless you are being very (overly I would say) stringent in your design criteria.

If you are interested only in content below 290 Hz, I would suggest you consider downsampling the data. If for some reason you must retain such a high sampling rate, consider an IIR design, which will result in a much lower order design.

Wayne

Sebastian Gatzka

unread,
Aug 7, 2011, 3:38:10 PM8/7/11
to
>
> Hi, It should not unless you are being very (overly I would say) stringent in your design criteria.
>
> If you are interested only in content below 290 Hz, I would suggest you consider downsampling the data. If for some reason you must retain such a high sampling rate, consider an IIR design, which will result in a much lower order design.
>
> Wayne

Thank you, Wayne.

I'm not that familiar with filter design so I'm not sure what an IIR design may be.
And how is downsampling done? Will this result in a faster filter design?

Sebastian Gatzka

unread,
Aug 15, 2011, 2:07:10 AM8/15/11
to
"Wayne King" <wmki...@gmail.com> wrote

>
> Hi, It should not unless you are being very (overly I would say) stringent in your design criteria.
>
> If you are interested only in content below 290 Hz, I would suggest you consider downsampling the data. If for some reason you must retain such a high sampling rate, consider an IIR design, which will result in a much lower order design.
>
> Wayne

Or maybe you can help me find some less stringent design criteria for a FIR lowpass filter below 300 Hz?

0 new messages