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 of 2-D Selections in 3-D Grids 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!