Find the partial minimums in a set of values

Hi everyone! I have the graphics i show you in the image and i would like to know the distance betwen the two minimum point in the middle of the graph. I mean betwen around 30 and 60. How could i find this points? I have thought I could aproximate to a polynomial function and find the minimums...
untitled.jpg

 Respuesta aceptada

darova
darova el 6 de Nov. de 2019

0 votos

  • Use findpeaks(-data)
  • Choose peaks that lie in 23 < x < 27 and 58 < x < 62

3 comentarios

marco mendez
marco mendez el 6 de Nov. de 2019
Nice! Thank you!!
Steven Lord
Steven Lord el 6 de Nov. de 2019
I'd probably use islocalmin instead of findpeaks on the negative of the data.
marco mendez
marco mendez el 6 de Nov. de 2019
Editada: marco mendez el 6 de Nov. de 2019
much better, thanks Steven! Although I solved it using -data...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 6 de Nov. de 2019

Editada:

el 6 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by