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
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 个)

类别

Help CenterFile Exchange 中查找有关 Filter Analysis 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by