Clear Filters
Clear Filters

Finding Corresponding Frequencies to Amplitude Peaks

1 view (last 30 days)
I have an amplitude-frequency plot and I'd like to find the frequencies that correspond with the top three amplitudes. I am able to get the amplitudes by using the findpeaks() and the sort() functions in order to put the peak vector in ascending order. However, I'm having a bit of trouble finding the their corresponding frequencies.
The findpeaks function has an output for the locations of the peaks but once I use the sort function to order the peaks, the location output vector is practically useless.

Accepted Answer

Chinwe Orie
Chinwe Orie on 18 Jul 2018
I found a better way to address the problem. In order to find the highest peak in another array of similar numbers (to find the corresponding frequency), I just used the find() function.
What I mean is say I got the highest two peaks from a signal. Then, in the Amplitude Spectrum-Frequency Plot, I used the find() function in the Amplitude Spectrum in order to find the location highest two peaks in the spectrum. To find the corresponding frequencies I used frequencies(whatever indices I found).

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!