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

14 vues (au cours des 30 derniers jours)
pacharya
pacharya le 9 Mai 2019
Commenté : Star Strider le 13 Mai 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!

Réponse acceptée

Star Strider
Star Strider le 9 Mai 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 commentaires
pacharya
pacharya le 13 Mai 2019
Thank you!
Star Strider
Star Strider le 13 Mai 2019
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (1)

gonzalo Mier
gonzalo Mier le 9 Mai 2019
Modifié(e) : gonzalo Mier le 9 Mai 2019
  1 commentaire
pacharya
pacharya le 10 Mai 2019
Thank you! I did try using find peaks but it is not working for all the data (coming from different trials)

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by