Desinging both IIR and FIR bandpass filter
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
Can someone help me out in designing a IIR bandpass filter and FIR bandpass filter with the needed parameters of sampling rate=500Hz and frequencies to be passed are between 0.5 Hz to 2.4Hz.
Thanks.
0 件のコメント
回答 (1 件)
Jan
2014 年 1 月 1 日
編集済み: Jan
2014 年 1 月 1 日
What about a sixth order Butterworth for the IIR filter:
Wn = [0.5, 2.4] / 250;
[B, A] = butter(3, Wn)
And as a FIR filter:
[B, A] = fir1(3, Wn)
But there are a lot of other possible choices of parameters. Do you have any further details to consider?
4 件のコメント
Jan
2014 年 1 月 5 日
The posted details are not useful to specify filter conditions.
A filter cannot crop "everything" outside the band while keeping "all" frequencies inside the band. The are always effects on the edges of the band. It is impossible to keep all frequencies with 2.39999999999999999Hz and removing all signals with 2.40000000000000001Hz. The filter parameters, e.g. the order of the Butterworth filter define the slope of the damping at the edges.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!