dbode results in phase shift that is wrong (I believe)
이전 댓글 표시
I'm looking at bode plots of linear phase FIR filters and I believe I am getting the wrong phase plot with filter order > 5.
In particular, I'm looking at a moving average filter.
% FIR phase error ?
% LFIR.m
Ts= 1E-3;
n=6;
num= (1/n)*[ones(1,n)];
den= [1 zeros(1,n)];
sys=tf(num,den,Ts);
figure(1); pzmap(sys);
figure(2); dbode(num,den,Ts);
From the pzmap it can be seen that for small positive frequencies on the unit circle the phase contribution should be near zero. However the dbode plot shows the phase at w=0 r/s to be 360 degree. If I use n=5 or less, I do get 0 deg phase at w ~= 0 rad/sec. Is this a problem with dbode?
MATLAB Version: 9.10.0.1739362 (R2021a) Update 5
Here are the pzmap and dbode for n=6:

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
