【发布时间】:2017-10-08 08:30:00
【问题描述】:
我一直在尝试做这个问题,但无论如何我都会得到这个错误。
有什么想法吗?
问题是
“矩阵尺寸必须一致”
bb = [1,1.18,1]; %-- Filter Coefficients
nn = 1:150;
L2 = 0:9; % M - 1(10-1 = 9)
%1st at 0.3
w1 = (0.2*cos(0.44*pi*nn)) .* (exp(-1i * 0.3 * 3.14 * L2)) ;
%2nd at 0.44
w2 = 0.2*cos(0.44*pi*nn) .* exp(-1i*0.44*3.14*L2);
%3rd at 0.7
w3 = 0.2*cos(0.44*pi*nn) .* exp(-1i*0.7*3.14*L2);
wt = w1 + w2 + w3;
HTOTAL = freqz(bb, 1, wt);
H1 = freqz(bb, 1, w1); %
H2 = freqz(bb, 1, w2); %
H3 = freqz(bb, 1, w3); %
%set the value of x to see the filter
x = 1;
subplot(2,1,1); plot(wx, abs(HH))
subplot(2,1,2); plot(wx, angle(HH))
xlabel('Normalized Radian Frequency')
【问题讨论】: