MATLAB: Find peaks.

fftplots

hello, I have a plot of values from my fft function for a sinewave audio signal. I am now trying to analyze each peak in the plot to give me the sum of the peak and two other lower points on both sides of the peak. can anyone please help?

Best Answer

[Xm Im] = findpeaks(X1)
Fm = F(Im)
The Fm and Xm values will hold your x and y values for the peaks.
Related Question