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 the Community Ranking System, a fun gamification element of the PTC Community. X

linterp problem in Prime 10

BillMcNealy
3-Newcomer

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
Werner_E
25-Diamond I
(To:BillMcNealy)

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.

Werner_E
25-Diamond I
(To:BillMcNealy)

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
 

Announcements

Top Tags