Fourier transform of hamming window function
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to apply fourier transform onto hamming window but when I use fft function to get fourier transform but it shows graph like showed below. When I referred https://en.wikipedia.org/wiki/Window_function#Hamming_window they show different graph. There is also code attached. Can someone please help me to figure out.
if true
if true
hfft = hamming(framelength);
plot(abs(fft(hfft)));
end
end

0 Kommentare
Antworten (1)
jie li
am 28 Aug. 2020
framelength = 60
hfft = hamming(framelength);
%hfft = rectwin(framelength);
%hfft = blackman(framelength);
A = fft(hfft, 2048) / (framelength /2);
mag = abs(fftshift(A));
freq = linspace(-0.5, 0.5, length(A));
response = 20 * log10(mag);
% lowvalue = -80;
% response(response < lowvalue) = lowvalue;
plot(freq,response)
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!