Finding Corresponding Frequencies to Amplitude Peaks

3 次查看(过去 30 天)
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.

采纳的回答

Chinwe Orie
Chinwe Orie 2018-7-18
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).

更多回答(0 个)

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by