Frequency domain of wvtool - how to replicate?
8 次查看(过去 30 天)
显示 更早的评论
I'm trying to obtain the frequency domain (in dB) data of a Kaiser window and I'm unable to duplicate what results from the "wvtool". My code is below. Why does my fft plot not show all the side lobes that are shown in the Frequency Domain of the wvtool GUI?
if true
% code
end
N=100;
w = window(@kaiser,N,1)
figure(1);subplot(1,2,1);
plot(w);
subplot(1,2,2);
plot(db(abs(fft(w))));axis([0 50 -80 40]);
wvtool(w)
0 个评论
采纳的回答
Honglei Chen
2016-8-12
You need more points in there. The default is probably 512 or 1024. Try
plot(db(abs(fft(w,1024))));axis([0 50 -80 40]);
HTH
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Windows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!