Parks - McClellan filter design

조회 수: 3 (최근 30일)
Cagdas
Cagdas 2013년 12월 15일
편집: Wayne King 2013년 12월 15일
Hi all,
We are asked to design a Parks-McClellan filter with the following specifications,I tried to use firgr and firpm methods however, couldn't be sure how to apply the specifications to the command.
passband filter edge = 2kHz stopband filter edge = 2.5 kHz passband tolerance = stopband tolerance = 0.05 sampling frequency = 8 kHz.
Thanks.

답변 (1개)

Wayne King
Wayne King 2013년 12월 15일
편집: Wayne King 2013년 12월 15일
If you use fdesign.lowpass with a minimum order design, the default design is the PM equiripple method
To convert the passband tolerance and stopband tolerances to passband ripple in dB and stopband attenuation
Rp = -20*log10((1-0.05)/(1+0.05));
Ast = -20*log10((0.05)/(1+0.05));
Fs = 8000;
d = fdesign.lowpass('Fp,Fst,Ap,Ast' ,2e3,2.5e3,Rp,Ast,Fs);
Hd = design(d);
The above will call firpm()

카테고리

Help CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by