Skip to main content
4-Participant
May 23, 2024
Question

linterp problem in Prime 10

  • May 23, 2024
  • 2 replies
  • 1191 views

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.

2 replies

25-Diamond I
May 23, 2024

You used the wrong order for the two data vectors

Werner_E_0-1716477309473.png

 

4-Participant
May 23, 2024

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.

25-Diamond I
May 23, 2024

Maybe you are looking for some multidimensional interpolation functions:

Werner_E_1-1716478383012.png

 

Prime 10 file attached

Community Moderator
June 20, 2024

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