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

3 次查看(过去 30 天)
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 个评论
Star Strider
Star Strider 2017-9-18
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.

请先登录,再进行评论。

回答(1 个)

Star Strider
Star Strider 2017-9-17
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.

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by