clear all;close all;load('C:\Users\life-XD\Desktop\03.ma

taurusgemini2022-10-04 11:39:541条回答

clear all;
close all;
load('C:Userslife-XDDesktop 3.mat')
wc = .01*pi
L = 128;
for i = 1:L+1x05% Generate sin(x)/x function Make symmetrical
n = i-L/2 ;
if n == 0
hn(i) = wc/pi;
else
x05 hn(i) = (sin(wc*(n)))/(pi*n); %Filter impulse response
end

%hn = hn .* blackman(L+1)';
[nu,ar]=size(b);
for


j=1:nu;

z(h)=b(j,:);

end
H = conv(z(j),hn);

plot(n,H);
axis([0 50 0 2]);
xlabel('Freqency (Hz)');
ylabel('H(f)');
end

已提交,审核后显示!提交回复

共1条回复
迷茫人生的龙 共回答了17个问题 | 采纳率94.1%
你整个程序中就没有定义h这个变量.
1年前

相关推荐