finding the two coordinates

1 Ansicht (letzte 30 Tage)
Babu Sankhi
Babu Sankhi am 1 Okt. 2020
Kommentiert: Babu Sankhi am 4 Okt. 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

Akzeptierte Antwort

Matt J
Matt J am 2 Okt. 2020
fzero(@(x)interp1(A,x), [1,numel(A)])
  13 Kommentare
Matt J
Matt J am 4 Okt. 2020
Bearbeitet: Matt J am 4 Okt. 2020
xvalue = fzero( @(xq)interp1(x,y+4.54,xq) , [min(x),max(x)] )% x value at y=-4.54
Babu Sankhi
Babu Sankhi am 4 Okt. 2020
Thank you ,
It worked now.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation of 2-D Selections in 3-D Grids finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by