MATLAB: Finding the two coordinates

coordinatesplots

Hi all,
I have a plot from experimental data. I want to find the two values of x that corresponds to y=0. Basically, I want to find the coordinates A and B ( in both coordinates y=0) in the file attached below. I tried by using " find (x==0)" but it gave me blank. Can you please help how can I find them?
Thank you

Best Answer

fzero(@(x)interp1(A,x), [1,numel(A)])
Related Question