Effacer les filtres
Effacer les filtres

Finding Corresponding Frequencies to Amplitude Peaks

1 vue (au cours des 30 derniers jours)
Chinwe Orie
Chinwe Orie le 15 Juil 2018
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.

Réponse acceptée

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

Plus de réponses (0)

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by