Borrar filtros
Borrar filtros

Finding Corresponding Frequencies to Amplitude Peaks

1 visualización (últimos 30 días)
Chinwe Orie
Chinwe Orie el 15 de Jul. de 2018
Respondida: Chinwe Orie el 18 de Jul. de 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.

Respuesta aceptada

Chinwe Orie
Chinwe Orie el 18 de Jul. de 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).

Más respuestas (0)

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by