How to find the proper peaks in a graph?

조회 수: 3 (최근 30일)
David Hernandez
David Hernandez 2017년 10월 11일
댓글: Prashant Arora 2017년 10월 18일
So, I need to find peaks but I haven't found a good 'algorithm' or method to find them, for instance I have the following graph, so you can see that Peak 1 is not covered and I probably don't want peak 2 and 3 is not part of the peaks.
I'm using findpeaks with MinPeakDistance of 150 for this example.
If I use Threshold, for some reason is not working as expected and I need to input a very small number to see something happening, and that number is .001, and that is giving me almost half the peaks which I don't want to.
I know this question is not clear and reason why is because I don't really know how to calculate the peaks that I want.
Hope it makes sense and someone can illuminate me.
  댓글 수: 1
Prashant Arora
Prashant Arora 2017년 10월 18일
Hi David,
Check out the prominence property of the peaks and the "MinPeakProminence" option in the findpeaks function.

댓글을 달려면 로그인하십시오.

답변 (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