Post by Neungruethai NakkaritI try fft hanning window from .wav file. Which .wav convert from .mp song.
it's cannot fft hanning window. Would like to requested kindly. With who knowledge to answer questions.
very thaks
Hi, I'm sorry but I am not sure I understand your question. Are you trying to take the Fourier transform of your input after multiplying by a Hamming window? If so, then
1.) Read your .wav file into the MATLAB workspace using wavread(). If the output is a two-column matrix, extract just one column.
Ex:
Y = wavread('yourfile.wav');
Y = Y(:,1);
2.) Multiply Y by a Hamming window of the same length.
Y =Y.*hamming(length(Y));
3.) Take the Fourier transform of Y
Ydft = fft(Y);
Alternatively, if you have the Signal Processing Toolbox, you can get a power spectral density estimate of Y using a Hamming window (if this is what you want) with:
plot(psd(spectrum.periodogram('Hamming'),Y,'Fs',Fs));
where Fs is the sampling frequency.
Hope that helps,
Wayne