📄 hanming.m
字号:
tao=1*10^(-4);
f0=0;
B=1*10^6;
u=B/tao;
t=-tao/2:tao/1023:tao/2;
s=exp(j*2*pi*(f0*t+0.5*u*t.^2));
tw=0.54+0.46*cos(2*pi*t/tao);
sw=s.*tw;
Y1=fftshift(fft(s));
h1=fftshift(abs(ifft(Y1.*conj(Y1))));
Y2=fftshift(fft(sw));
h2=fftshift(abs(ifft(Y2.*conj(Y2))));
subplot(1,2,1);
plot(t,20*log10(h1/max(h1))),axis([-5e-5 5e-5 -90 0]);
grid on;
title('未加窗时脉压输出')
subplot(1,2,2);
plot(t,20*log10(h2/max(h2))),axis([-5e-5 5e-5 -100 0]);
grid on;
title('时域加窗后(海明窗)输出');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -