Find peak using MinPeakWidth

10 ビュー (過去 30 日間)
Luis Eduardo Cofré Lizama
Luis Eduardo Cofré Lizama 2020 年 2 月 13 日
回答済み: Raunak Gupta 2020 年 2 月 18 日
Dear All, I am struggling to get some peaks right becasue it seems I am not using the input MinPekWidth properly. For example, in the figure all but the 4th peak are ok. Any ideas how could I solve this prob?
cheers
Eduardo
[v,HC] = findpeaks(data,'MinPeakHeight',0,'MinPeakDistance',90,'MinPeakWidth',8)

回答 (1 件)

Raunak Gupta
Raunak Gupta 2020 年 2 月 18 日
Hi,
Visually I can see that the fourth peak you are getting is because it is the local maximum around the location of that peak. Here I suggest setting the MinPeakProminence instead of setting MinPeakDistance because setting MinPeakDistance finds the maximum value in signal and ignore all the peaks within MinPeakDistance range. In that case achieving what is required in the question is not possible. Instead setting MinPeakProminence can ensure that the value is not dropping too fast around a peak.

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by