MATLAB: Finding Peak Edges from Array of 116 Curves

MATLABpeak width

Hello! I want to first say I'm incredibly appreciative of this community and its response to questions. People like me very much appreciate it. Here is my situation:
I have an array of 116 curves:
Each cuve is a single peak:
What I'm trying to do is find the edges of the peaks and the position of those edges:
I have successfully used findpeaks() to find the position, location, and peak width of each of the 116 curves/peaks, but the peak width is limited to either the bandwidth at halfheight or halfprominance. I was wondering if anyone could help me with an approach that could help me find the peak edges and what index/pixel it occurs at. I would greatly appreciate it.

Best Answer

hello
I suggest to use the attached crossing function , with the y threshold corresponding the y value of the black line in your picture.
the function allows you to get the positive slope (left crossing) point and the negative slope (right crossing) point
hope it helps