怎么用matlab画高斯窗函数?比如 n=50;window=hanning(n);[h,w]=freqz(window,1);subplot(1,2,1)stem(window);subplot(1,2,2);plot(w/pi,20*log(abs(h)/abs(h(1))));可以生成汉宁窗函数和频谱函数,类似的怎么生成高斯窗函数的?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 01:41:22
怎么用matlab画高斯窗函数?比如 n=50;window=hanning(n);[h,w]=freqz(window,1);subplot(1,2,1)stem(window);subplot(1,2,2);plot(w/pi,20*log(abs(h)/abs(h(1))));可以生成汉宁窗函数和频谱函数,类似的怎么生成高斯窗函数的?

怎么用matlab画高斯窗函数?比如 n=50;window=hanning(n);[h,w]=freqz(window,1);subplot(1,2,1)stem(window);subplot(1,2,2);plot(w/pi,20*log(abs(h)/abs(h(1))));可以生成汉宁窗函数和频谱函数,类似的怎么生成高斯窗函数的?
怎么用matlab画高斯窗函数?
比如 n=50;
window=hanning(n);
[h,w]=freqz(window,1);
subplot(1,2,1)
stem(window);
subplot(1,2,2);
plot(w/pi,20*log(abs(h)/abs(h(1))));可以生成汉宁窗函数和频谱函数,类似的怎么生成高斯窗函数的?

怎么用matlab画高斯窗函数?比如 n=50;window=hanning(n);[h,w]=freqz(window,1);subplot(1,2,1)stem(window);subplot(1,2,2);plot(w/pi,20*log(abs(h)/abs(h(1))));可以生成汉宁窗函数和频谱函数,类似的怎么生成高斯窗函数的?

假设是32点的高斯窗,用以下matlab语句就可以看到高斯窗时域和频域的情况:

N = 32;

wvtool(gausswin(N));

或者:

window=gausswin(n);

[h,w]=freqz(window,1);

subplot(1,2,1)

stem(window);

subplot(1,2,2);

plot(w/pi,20*log(abs(h)/abs(h(1))));