MATLAB: Tracking a point in a graph

general condition for tracking a data point from multiple dataMATLABtrack x-axis value for an uneven datatracking a data point

Hi,
I want to write a general condition statement which could grab the values marked with an arrow in the attachement. This is a point where the graph starts to decrease.
The reason for writing a general condition (some logic, like when data starts to decrease at a faster rate corresponding x-axix value at that particular point (where the curve starts to decrease) is fetched and store in a table) is that I have similar data for -1V to -39V as you could see this data is for -40V. Finally I need to fetch the value on the y-axis to be stored to a table (like in this case that value is 4.41eV). This value might shift to a different x axis value for other datas (-1 to -39V), thats the reason I want to track it. I have also attached a file which shows multiple data as I am mentioning (-1to-39V) for the reference.
I would really appreciate if I could get some help on this.
Thanks in advance
Darpan
Screen Shot 2019-03-07 at 9.32.28 PM.png

Best Answer

YOu can use the concept maxima and minima....you may refer here: https://in.mathworks.com/matlabcentral/answers/37103-finding-turning-points-of-a-dataset