从图中提取 x 和 y 截距

Extract x and y intercept from plot

我已经在 MATLAB 中绘制了一些数据(见下图)。 如何在不手动估计的情况下从图中提取 x 和 y 截距?

试试这个:

x0 = interp1(y,x,0,'spline');
y0 = interp1(x,y,0,'spline');

类似 question/answer here, except you'll need to play with the method and maybe even the extrapolation as described on this Matlab page.