필터 지우기
필터 지우기

Finding Corresponding Frequencies to Amplitude Peaks

조회 수: 3 (최근 30일)
Chinwe Orie
Chinwe Orie 2018년 7월 15일
답변: Chinwe Orie 2018년 7월 18일
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개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by