cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Interpolation with Table

XUANDINH
5-Regular Member

Interpolation with Table

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions

DUH!

 

More coffee!

View solution in original post

6 REPLIES 6

See attached file. 

XUANDINH
5-Regular Member
(To:Fred_Kohlhepp)

Thank you so much!

LucMeekes
23-Emerald III
(To:XUANDINH)

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

DUH!

 

More coffee!

XUANDINH
5-Regular Member
(To:LucMeekes)

Very useful, thank you so much.

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

B.png

Top Tags