MATLAB: How can i find the y value in the script file versus the x value in the graph

find a value in the graph

how can i find the y value in the script file versus the x value in the graph?

Best Answer

After opening the figure file run
ax = gca;
x = ax.Children.XData
y = ax.Children.YData
will give the x and y values of the points in the graph