How to build a 2-D lookup table?

3 views (last 30 days)
Hasan Dilek
Hasan Dilek on 22 Feb 2017
Commented: Derrick Gao on 3 Sep 2019
Hello,
I have measeared data in Excel. Inputs are x and y , according them an output z. All three have the dimensions (nx1). How can I make a 2-D lookup table with them? I tried and got a dimension-error. Eventually I have to make an interpolated matrix of my output z , but I do not know how. Does anybody have an idea? Thanks.

Answers (1)

Walter Roberson
Walter Roberson on 22 Feb 2017
Unless there are repeated values forming an implicit grid, you should be using TriScatteredInterp or ScatteredInterpolant
  4 Comments
Hasan Dilek
Hasan Dilek on 23 Feb 2017
Now it works:) Thank you !

Sign in to comment.

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!