How to divide this plot into different regions?

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).
This procedure must be performed for the entire plot.

3 Kommentare

Adam Danz
Adam Danz am 24 Aug. 2020
Bearbeitet: Adam Danz am 24 Aug. 2020
"...each one is characterized by one peak followed by a minimum point."
That's not what your image is showing, though. The 2nd red line is not on a local minimum point. I see about 3 minimal points between the segmented peak and the next peak to the right of your segmentation (there may be smaller local minima as well). This will make implementation of your rule difficult.
Perhaps you want the minimum point between peak n and peak n+1 which would move the 2nd red line to the right by about 1 uinit.
Is there a peak marker under the 2nd red line? If so, is it your intension to end the segmentation at the next peak?
What defines the first red line?
I want to select the regions in which one I have a peak, shown with a blue triangle, followed by a minimum point.
So the 2nd red line has been misplaced, in fact it had to be positioned at the next mininum point.
Adam Danz
Adam Danz am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 24 Aug. 2020

Kommentiert:

am 26 Aug. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by