How can i find local min on a data graph?

1 view (last 30 days)
yishai
yishai on 4 Aug 2015
Answered: Star Strider on 4 Aug 2015
Hi guys! I'm looking for a local min points in this graph (added file). I want to segment the graph, so i need the x and y values of each point. how can i do it? i tried to use many functions, but most of them need a function to analyze, and not a data. thanks!

Answers (1)

Star Strider
Star Strider on 4 Aug 2015
You did not provide any data or describe what did or did not work.
If you have a vector of data, and you have the Signal Processing Toolbox, use the findpeaks function on the negative of your data to find the minima. You will probably have to experiment with the name-value pair arguments to get the result you want, so read about them in the documentation.
If you don’t have access to findpeaks, there are peak-finding functions in the File Exchange that should do what you want.

Community Treasure Hunt

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

Start Hunting!