Parks-McClellan algorithm for filter design

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

Risposte (1)

Wayne King
Wayne King il 14 Ott 2012
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'

Richiesto:

il 14 Ott 2012

Community Treasure Hunt

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

Start Hunting!

Translated by