Interpolate, find - excel lookup equivalent
이전 댓글 표시
I completed an excercise many years ago using Excel for a university task.
I recently started using Matlab and would like to repeat the task, but I am stuck and Im not sure what function to use.
I have a variable t, but now I need to find what range t lies within to extract a corresponding value. In excel the function I used was lookup, where it would look for the value in the table.
With Matlab, im not sure if it is interpolate, or find. I tried with interpolate and couldnt get it to work using this below, it could be that I have used this incorrectly or due to the format of the table. Any ideas??
c = interp1(Flange(1:4,1:2), Flange(1:4,3), t);
Many thanks!

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!