Understanding FFT analysis of sound .wav file
Show older comments
Hey I plotted this function of my recorded voice using an fft, I dont quite understand the corresponing frequency response graph, can someone help me see where I went wrong? It is a sample of my own voice, but the fft analysis shows frequency components at much higher frequencies, i.e. 700Hz and 1200Hz. I posted the code, and the graph below.
[y,Fs] = audioread(filename);
Length = length(y)
Mono = (y(:,1)+y(:,2))/2;
y = Mono;
time=(1:length(y))/Fs;
F = 1./time;
NFFT = 2^nextpow2(Length)
f = Fs/2*linspace(0,1,NFFT/2+1);
Y = fft(y,NFFT)/Length;
plot(f,2*abs(Y(1:NFFT/2+1)))
Accepted Answer
More Answers (0)
Categories
Find more on Measurements and Spatial Audio in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!