Interpolate, find - excel lookup equivalent
Mostrar comentarios más antiguos
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!

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!