Digital filters
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (2)
Gaurav Gupta
el 19 de Jul. de 2011
0 votos
Use fir1 for designing filter and freqz for viewing its frequency response
1 comentario
Kim
el 30 de Ag. de 2011
Daniel Shub
el 19 de Jul. de 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 comentarios
Walter Roberson
el 19 de Jul. de 2011
Question: Is the "128" there the Nyquist frequency, Fs/2 ?
Daniel Shub
el 19 de Jul. de 2011
Yes, Kim said Fs=256.
Kim
el 30 de Ag. de 2011
Categorías
Más información sobre Filter Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!