Digital filters

조회 수: 4 (최근 30일)
Kim
Kim 2011년 7월 18일
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
Jan
Jan 2011년 7월 18일
What is "nice" enough for your purpose?
Kim
Kim 2011년 8월 30일
Thank you for your answer. I have been away. And have found the answer.

댓글을 달려면 로그인하십시오.

채택된 답변

Rick Rosson
Rick Rosson 2011년 7월 18일
Hi Kim,
Do you have access to the Signal Processing Toolbox in MATLAB? If so, you can use the fdatool to design the filter very easily.
For more information:
doc fdatool
HTH.
Rick
  댓글 수: 1
Kim
Kim 2011년 8월 30일
Thank you for taking time to answer this. I was away for a bit so didn't get it.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Gaurav Gupta
Gaurav Gupta 2011년 7월 19일
Use fir1 for designing filter and freqz for viewing its frequency response
  댓글 수: 1
Kim
Kim 2011년 8월 30일
Thank you for your answer.

댓글을 달려면 로그인하십시오.


Daniel Shub
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
Daniel Shub
Daniel Shub 2011년 7월 19일
Yes, Kim said Fs=256.
Kim
Kim 2011년 8월 30일
Thank you for this answer. I ended up using a butterworth designed in fdatool but then moved it to an mfile.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by