MATLAB Answers

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

조회 수: 23(최근 30일)
pacharya
pacharya 9 May 2019
댓글: Star Strider 13 May 2019
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!

  댓글 수: 0

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

채택된 답변

Star Strider
Star Strider 9 May 2019
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

표시 이전 댓글 수: 4
Star Strider
Star Strider 11 May 2019
If my Answer helped you solve your problem, please Accept it!
Star Strider
Star Strider 13 May 2019
As always, my pleasure!

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

추가 답변(1개)

gonzalo Mier
gonzalo Mier 9 May 2019
편집: gonzalo Mier 9 May 2019

  댓글 수: 1

pacharya
pacharya 10 May 2019
Thank you! I did try using find peaks but it is not working for all the data (coming from different trials)

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

태그


Translated by