finding the two coordinates

1 次查看(过去 30 天)
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

采纳的回答

Matt J
Matt J 2020-10-2
fzero(@(x)interp1(A,x), [1,numel(A)])
  13 个评论
Matt J
Matt J 2020-10-4
编辑:Matt J 2020-10-4
xvalue = fzero( @(xq)interp1(x,y+4.54,xq) , [min(x),max(x)] )% x value at y=-4.54
Babu Sankhi
Babu Sankhi 2020-10-4
Thank you ,
It worked now.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation of 2-D Selections in 3-D Grids 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by