How to build a 2-D lookup table?
Show older comments
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
on 22 Feb 2017
1 vote
Unless there are repeated values forming an implicit grid, you should be using TriScatteredInterp or ScatteredInterpolant
4 Comments
Hasan Dilek
on 23 Feb 2017
Edited: Walter Roberson
on 23 Feb 2017
Walter Roberson
on 23 Feb 2017
Change the assignment to ti to be a vector of values with 200 entries. For example one version would be
ti = linspace(-2, 2, 200);
Hasan Dilek
on 23 Feb 2017
Derrick Gao
on 3 Sep 2019
awesome!!
Categories
Find more on Logical 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!