Skip to main content
1-Visitor
May 10, 2018
Solved

Interpolation with Table

  • May 10, 2018
  • 3 replies
  • 4926 views

Hello Everybody,

I have a query with interpolation:

We have 2 tables of data X1 and X3 with 4 items for each table (or matrix, vector)
X1 at value of arguments 10

X3 at value of arguments 20

I want to interpolate at 12 of arguments?

Can anyone help me?

 

Best answer by Fred_Kohlhepp

DUH!

 

More coffee!

3 replies

23-Emerald I
May 10, 2018

See attached file. 

XUANDINH1-VisitorAuthor
1-Visitor
May 10, 2018

Thank you so much!

23-Emerald IV
May 10, 2018

Of course Fred's method works.

But you shouldn't need to define the interpolation function, just use linterp(), which is built-in.

LM_20180510_Interpolation.png

Success!
Luc

23-Emerald I
May 10, 2018

DUH!

 

More coffee!

25-Diamond I
May 10, 2018

Here is a variant getting rid of the range variable and using a function with vectorization:

B.png