How can I plot the amplitude and phase responses of a Cascaded Integrated Comb filter?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to plot the amplitude and phase responses of a Cascaded Integrated Comb filter
But I don't get the right Sinc function in the amplitude response, any idea? Here is the transfer function in discrete domain.
![Capture.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/220159/Capture.jpeg)
and Here is my code
clear all
close all
clc
omg = -10:0.01:10;
N = 3;
M = 1;
R = 2;
n = [-1 zeros(M*R-1,1) 1];
d= [-1 1];
num = [1];
den = [1];
for i = 1:N
num = conv(num,n);
den = conv(den,d);
end
H = freqs(num,den,omg);
figure(1)
plot(omg,abs(H))
figure(2)
plot(omg,angle(H))
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!