How to divide this plot into different regions?
3 views (last 30 days)
Show older comments
I want to identify different regions, each one is characterized by one peak followed by a minimum point.
This is the plot in which I want to obtain these different regions (red lines).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/350954/image.jpeg)
This procedure must be performed for the entire plot.
3 Comments
Adam Danz
on 26 Aug 2020
You already have the location of peaks. Now all you need to do is find the min() between adjacent peaks. That should be quite easy to do within a loop.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!