Hello, is there any chance of getting the intercept points between a peak and its 'WidthReference' line?
For example I have this data:
c = [0 0 0 1 2 5 7 21 21 21 21 21 7 6 5 2 3 2 0 1 0 12 15 0 4 2 10 10 10 10 3 1 1];findpeaks(c,'SortStr','descend','MinPeakProminence',8,'Annotate','extents')
And I need to get the red points, as shown in the next figure:
The aim of this is to obtain the middle point of each peak (green points). My real data is a 600 elements vector, so it will be enough to round the X coordinate to the nearest integer.
Thank you in advance.
Best Answer