I am trying to use the "findpeaks" function to find the peak in a set of data.

1 回表示 (過去 30 日間)
BP
BP 2021 年 9 月 10 日
編集済み: DGM 2021 年 9 月 10 日
I am trying to use the "findpeaks" function to find the peak in a set of data. I want to better understand how the function works. Please explain what is the purpose of the number "7000" in the line below? It finds several peaks when this number is low. It only finds one when this number is 7000 or higher.
[ymx,idx] = findpeaks(y, 'MinPeakProminence',7000);

回答 (1 件)

DGM
DGM 2021 年 9 月 10 日
編集済み: DGM 2021 年 9 月 10 日
The documentation for findpeaks explains it better than I could:
"The prominence of a peak measures how much the peak stands out due to its intrinsic height and its location relative to other peaks. A low isolated peak can be more prominent than one that is higher but is an otherwise unremarkable member of a tall range."
The documentation of the MinPeakProminence KVP:
An explanation of the prominence algo:

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by