How to implement a low pass and a band pass filter?

3 次查看(过去 30 天)
I would like to implement a 2nd order low pass filter with a cut off frequency of 10 rad/s. I would also like to implement a 2nd order bandpass filter with a passband of 10 rad/s to 20 rad/s. I would like both of these to be second-order so that the roll-off is faster relative to the first order.
How can I implement this in MATLAB for a signal sampled at 0.001 s?

采纳的回答

MathWorks Support Team
The filter order used while implementing the filter is very low for the very stringent frequency specifications. The filter is designed with a cutoff frequency of 0.47 and a sample rate of 1000 Hz.
Both the lowpass and bandpass designs are completely off because of the 10 order FIR filter as it is not large enough for the very small cutoff frequencies.
The correct way to solve this filtering problem is to resample the signal to a much lower sample rate and to design the filters with less stringent specifications. If this is not possible, then it will be helpful to use a much higher filter order or consider an IIR design

更多回答(0 个)

类别

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

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by