finding a value of x for a given y

2 Ansichten (letzte 30 Tage)
taher elshreef
taher elshreef am 23 Dez. 2020
Kommentiert: taher elshreef am 23 Dez. 2020
lets say i have x=[10:10:100];
y=[23 45 60 82 111 140 167 198 200 220];
and i want to use linear interpolation to approximate the value of x when y=80
i can use interp1(x,y,80) to find the value of y when x=80
how can i get the opposite??

Akzeptierte Antwort

the cyclist
the cyclist am 23 Dez. 2020
interp1(y,x,80)

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices 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