why does findpeaks detects minimas?

조회 수: 2 (최근 30일)
Kai
Kai 2016년 8월 28일
답변: Star Strider 2016년 8월 28일
I got the data of an acceleration sensor and I want to detect only the local maximas, I used
plot(data);
findpeaks(data);
but it also detected the minimas, but why?
With
findpeaks(data,'MINPEAKHEIGHT',2);
it worked as I expected the function to work, but I can't use 2 as a static threshold for my application. Did I something wrong, that it also detects the minimas or do I have to find a way to implement an adaptive threshold?

채택된 답변

Star Strider
Star Strider 2016년 8월 28일
It is not detecting minima, it is detecting noise peaks near the minima. The findpeaks function has a number of name-value pair arguments that can help you detect only what you want. Consider MinPeakHeight and MinPeakDistance, and others to get the result you want.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by