Digital filters
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Rick Rosson
on 18 Jul 2011
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
More Answers (2)
Gaurav Gupta
on 19 Jul 2011
Use fir1 for designing filter and freqz for viewing its frequency response
Daniel Shub
on 19 Jul 2011
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 Comments
See Also
Categories
Find more on Filter Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!