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

回答 (1 件)

Wayne King
Wayne King 2012 年 10 月 14 日

0 投票

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'

カテゴリ

質問済み:

2012 年 10 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by