MATLAB Answers

finding a value of x for a given y

12 views (last 30 days)
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??


Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 23 Dec 2020

  1 Comment

taher elshreef
taher elshreef on 23 Dec 2020
cant believe i didnt think of that :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by