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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

linterp problem in Prime 10

BillMcNealy
3-Visitor

linterp problem in Prime 10

Working on linear interpolation of a coefficient from a 7x4 matrix, utilizing x and y axis ranges, Pg_Vector and R_vector respectively.

 

From the first part of the linterp function worked perfectly for the x-axis  solutions, but the second time working on y-axis returns an incorrect answer.

 

See attached Prime 10 file.

4 REPLIES 4

You used the wrong order for the two data vectors

Werner_E_0-1716477309473.png

 

Thanks, missed the possibility that the operation would act differently when pulling out horizontal and vertical vectors, requiring reversal of the data and range vectors.

Maybe you are looking for some multidimensional interpolation functions:

Werner_E_1-1716478383012.png

 

Prime 10 file attached

Hi @BillMcNealy,

 

I wanted to follow up with you on your post to see if your question has been answered. 
If so, please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you. 

 

Thanks,
Anurag
 

Top Tags