plot(time,data,'b',time(idx_max),data(idx_max),'ro',time(idx_min),data(idx_min),'ro',time(idx_maxL),data(idx_maxL),'ro');grid on;hold all; plot(time,perpDist); hold off
I hope this answer your question (how accurate the point will depend on your massy data)
Points like that are often found using atriangle thresholding method. I think there's one in the File Exchange. Basically it draws a line from the peak to the tail and then draws perpendicular lines from that hypotenuse line to the curve. The longest perpendicular line from the hypotenuse to the curve indicates the "corner" of the curve. Maybe that will work for you.
Best Answer