Parks-McClellan algorithm for filter design
Show older comments
Dear all, i'm kinda new in Matlab and i need help, how to get Matlab code to design filter in Matlab with Parks-McClellan algorithm for this parameters:
0 ≤ H(e^jω) ≤ 0.01 0≤ω≤0.2π
0.95 ≤ H(e^jω) ≤ 1.05 0.35≤ω≤0.65π
0≤ H(e^jω) ≤0.03 0.75≤ω≤π
can someone show me the code or hint how to get filters in Matlab.
Thanks in advance
Answers (1)
Wayne King
on 14 Oct 2012
0 votes
If you have the Signal Processing Toolbox, you can use firpm.m Or you can use fdesign.bandpass with a specification string that supports 'equiripple'
Categories
Find more on Digital 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!