how to find local minima of a graph like shown in the figure?

조회 수: 8 (최근 30일)
pacharya
pacharya 2019년 5월 9일
댓글: Star Strider 2019년 5월 13일
Hello Everyone,
I am trying to find local minima (to get x and y values) as circled in the figure..Any suggestion please as how to find the local minima (or x and y values for the lowest valley)? I tried to use findpeaks by inverting the plot but it gave me more number of points. Thank you!

채택된 답변

Star Strider
Star Strider 2019년 5월 9일
If you have R2017b or later release, the islocalmin (link) function is an option.
Your are correct in using findpeaks with your inverted (negated) signal to find the minima. There are a number of name-value pair arguments (such as 'MinPeakHeight' and 'MinPeakProminence') that can help in sorting your peaks.
  댓글 수: 7
Star Strider
Star Strider 2019년 5월 13일
As always, my pleasure!

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

추가 답변 (1개)

gonzalo Mier
gonzalo Mier 2019년 5월 9일
편집: gonzalo Mier 2019년 5월 9일
  댓글 수: 1
pacharya
pacharya 2019년 5월 10일
Thank you! I did try using find peaks but it is not working for all the data (coming from different trials)

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

카테고리

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