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.

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!