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

3 visualizzazioni (ultimi 30 giorni)
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 Commenti
Star Strider
Star Strider il 18 Set 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.

Accedi per commentare.

Risposte (1)

Star Strider
Star Strider il 17 Set 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