finding a value of x for a given y

조회 수: 2 (최근 30일)
taher elshreef
taher elshreef 2020년 12월 23일
댓글: taher elshreef 2020년 12월 23일
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??

채택된 답변

the cyclist
the cyclist 2020년 12월 23일
interp1(y,x,80)
  댓글 수: 1
taher elshreef
taher elshreef 2020년 12월 23일
cant believe i didnt think of that :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by