Segmenting data based on multiple min and max value
Ältere Kommentare anzeigen
Hello, I have the following xlsx file (x,y). I want to separate every section of the curve ( 4 downard, 4 upward) part separate data file so that I can plot as different curve and merge them. So could anyone please suggest, how can I do segmentation based on multiple minima or maxima.
Thank you

3 Kommentare
KSSV
am 20 Jun. 2019
Did you attach the concerned file? The data in the file is something different.
infinity
am 20 Jun. 2019
Hello,
Here is my idea.
First, we can sort the data such that x increases from 0 to 3 if your data have not already been sorted.
Then, we find the maximum value of y for x > 1 if we did not know it.
To find the maximum of y for x within [1 3], you can just
- store your data with another varibale, let say "temp", in which x > 1.
- use max fucntion for "temp"
When you have this value, you can use "for" and "if" to split what you want.
Best regards,
Trung
az
am 20 Jun. 2019
Antworten (1)
Kategorien
Mehr zu Audio Processing Algorithm Design finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!