Find the max peak

30 ビュー (過去 30 日間)
Armindo
Armindo 2019 年 1 月 21 日
編集済み: Armindo 2019 年 1 月 21 日
Hi,
I need to determine the following peaks (red circles in the image attached) automatically.
For that I can make something like:
[~, Indx] = findpeaks(Sig,'MinPeakDistance',150);
However I have several signals and the time scale change as so the MinPeakDistance, which lead to the small peaks to be detected too. Is there any way to determine first the mean of the MinPeakDistance but only of the higher peaks and than use that mean to ensure that only the higher peaks are detected? Any other aproach is also welcom. I tryed several combinations with different options but always have problems.
Also note that the signal can start or end with a small or with a big peak.
Thanks.

回答 (2 件)

Image Analyst
Image Analyst 2019 年 1 月 21 日
Why not just mask out the things less than 2.5?
maskedSignal = Sig; % Initialize
maskedSignal(Sig < 2.5) = min(Sig);
[peakValues, indexesOfPeaks] = findpeaks(maskedSignal,'MinPeakDistance',150);

Armindo
Armindo 2019 年 1 月 21 日
編集済み: Armindo 2019 年 1 月 21 日
Thanks, but if the scale change how can I know the value to mask?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by