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

3 Ansichten (letzte 30 Tage)
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 Kommentare
Star Strider
Star Strider am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 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!

Translated by