Getting Frequencies Corresponding to Peaks In FFT Plot
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aditya Rudrapatna
am 4 Jan. 2018
Kommentiert: Star Strider
am 4 Jan. 2018
Hey everyone,
So I'm currently working on a project where I need to find the frequencies for specific peaks in my FFT plot of an audio file. However, I'm not sure how to actually get the frequencies that correspond to the peaks I'm interested in.
This is my code: https://pastebin.com/zZW8B5Th
And this is a picture of my FFT plot: https://imgur.com/0ajtful
Essentially, I'm trying to construct a Fourier Series from the signal. Although I know how to find the coefficients of the sine/cosine terms, I'm just a little confused on how to find the frequency.
Thanks everyone!
0 Kommentare
Akzeptierte Antwort
Star Strider
am 4 Jan. 2018
Note that the correct implementation of your fft call is:
X = X(1:length(y)/2+1)/length(y);
That will produce the correct amplitudes.
4 Kommentare
Star Strider
am 4 Jan. 2018
As always, my pleasure!
In my last Comment I linked you to ‘Find Peaks with Minimum Separation’ as well. I added the normalisation by length, although forgot to mention multiplying the 1-sided amplitudes by 2. (Not quite fully awake then.)
I envy you. I wish I’d had computers and MATLAB in high school!
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!