finding the two coordinates

2 views (last 30 days)
Babu Sankhi
Babu Sankhi on 1 Oct 2020
Commented: Babu Sankhi on 4 Oct 2020
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

Accepted Answer

Matt J
Matt J on 2 Oct 2020
fzero(@(x)interp1(A,x), [1,numel(A)])
  13 Comments
Babu Sankhi
Babu Sankhi on 4 Oct 2020
Thank you ,
It worked now.

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by