Why are there differences in the filter coefficients generated via FDATool and from using the MATLAB command 'fdesign.lowpass'?

조회 수: 2 (최근 30일)
I used the following code to produce a 70 tap filter:
fs = 203125;
Fpass = 9000;
Fstop = 12500;
Ap = 1;
Ast = 30;
Fp = Fpass/(fs/2);
Fst = Fstop/(fs/2);
d = fdesign.lowpass('Fp,Fst,Ap,Ast',Fp,Fst,Ap,Ast);
f = design(d,'equiripple');
However when I enter the same configurations into FDATool by setting fs = 203125, Fpass = 9000, Fstop = 12500, Astop = 30, Apass =1, Lowpass and equiripple, I get a 67 tap filter.
I would like to know the difference between these methods produce and why they produce different filters.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
FDESIGN uses the FIRGR function while FDATool uses the FIRPM function.
FIRGR and FIRPM both design equiripple filters but they use different implementations of the Parks-McClellan algorithm. Thus, they may return different answers.
In order to design filters graphically and ensure that the results are consistent with FDESIGN, use the FilterBuilder GUI instead of FDATool.

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by