Digital filters
이전 댓글 표시
I am trying to build a band pass filter from .1 to 40 Hz, IIR or FIR, and then analyze it in matlab. Does anyone know reasonable parameters for this kind of filter (Fs=256). I am having trouble building one that has nice properties.
Thanks Kim
채택된 답변
추가 답변 (2개)
Gaurav Gupta
2011년 7월 19일
0 개 추천
Use fir1 for designing filter and freqz for viewing its frequency response
Daniel Shub
2011년 7월 19일
Introductory DSP textbooks tend to provide formula for calculating parameters for some simple IIR filters (e.g., Butterworth). The signal processing toolbox in MATLAB provides the butter command. A first order Butterworth filter can be obtained with:
[b, a] = butter(1, [.1, 40]./128)
The parameters are: b =
0.3477 0 -0.3477
a =
1.0000 -1.3030 0.3047
댓글 수: 3
Walter Roberson
2011년 7월 19일
Question: Is the "128" there the Nyquist frequency, Fs/2 ?
Daniel Shub
2011년 7월 19일
Yes, Kim said Fs=256.
Kim
2011년 8월 30일
카테고리
도움말 센터 및 File Exchange에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!