From: rebel on
I'm trying to figure out how to design a bandpass FIR filter with the
smallest length using window-based approach and meeting the following specs
in matlab:
wp1=0.45*pi
wp2=0.65*pi
ws1=0.3*pi
ws2=0.8*pi
op=0.01
os1=0.008
os2=0.05

without using the 'fir1' function.

How is this possible?!?


From: Rune Allnor on
On 17 Nov, 13:42, "rebel" <rebelins...(a)gmail.com> wrote:
> I'm trying to figure out how to design a bandpass FIR filter with the
> smallest length using window-based approach and meeting the following specs
> in matlab:
> wp1=0.45*pi
> wp2=0.65*pi
> ws1=0.3*pi
> ws2=0.8*pi
> op=0.01
> os1=0.008
> os2=0.05
>
> without using the 'fir1' function.
>
> How is this possible?!?

It isn't. Before matlab, all engineers could do was to
smoke mushrooms and hallusinate about all they *ought*
to have done.

Oh, no. That's wrong. We used to have these weird things
called 'books'. Some of them actually contain recipes
on how to do these kinds of things.

But of course, finding relevant books (not to mention
reading them) is nothing more than ancient voodoo and
mysticism unsuitable for the up-and-coming generations...

Rune
From: Jerry Avins on
rebel wrote:
> I'm trying to figure out how to design a bandpass FIR filter with the
> smallest length using window-based approach and meeting the following specs
> in matlab:
> wp1=0.45*pi
> wp2=0.65*pi
> ws1=0.3*pi
> ws2=0.8*pi
> op=0.01
> os1=0.008
> os2=0.05
>
> without using the 'fir1' function.
>
> How is this possible?!?

That question implies that you believe it is not possible. I can assure
you that it is. A Parks-McClellan design will be shorter than a window
design for a reasonable passband ripple. Use the tool at
http://www.dsptutor.freeuk.com/remez/RemezFIRFilterDesign.html

If you must gave a windowed design, use the one at
http://www.dsptutor.freeuk.com/FIRFilterDesign/FIRFilterDesign.html

Matlab is a tool, not a book of incantations. Learn some theory.

Jerry
--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������