Butterworth lowpass filter design code with a specific cutoff frequency, pass-band and stop-band attenuation

2 views (last 30 days)
Hello I want to design an eighth-order Butterworth lowpass filter with the cutoff frequency of 35 Hz , stop-band attenuation of 1 dB and the pass-band attenuation of 8 dB , but I can not find a function in matlab that covers all these features.
  3 Comments
Star Strider
Star Strider on 18 Sep 2017
That is not the filter you described, or perhaps the authors described it incorrectly. It has a passband of 30 Hz and stopband (half-power, or -6 dB) frequency of 35 Hz
It will be relatively straightforward to design it as a discrete filter. See my Answer.
If you want to design it as a continuous filter in hardware, that is beyond the scope of this forum. There are several textbooks that discuss hardware filter design and implementation.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 17 Sep 2017
Your filter design defies logic. I do not understand your passband attenuation being greater than your stopband attenuation. Usually the passband is at 0 dB and the stopband is -50 dB or less.
That aside, see if the designfilt (link) function will design your filter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!