How can I plot the amplitude and phase responses of a Cascaded Integrated Comb filter?

1 回表示 (過去 30 日間)
soso maths
soso maths 2019 年 5 月 18 日
編集済み: soso maths 2019 年 5 月 18 日
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 Center および File ExchangeFilter Analysis についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by