Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline GFDIntano  
#1 Posted : 17 January 2024 16:19:48(UTC)
GFDIntano

Rank: Newbie

Groups: Registered
Joined: 09/05/2023(UTC)
Posts: 8
Philippines
Location: Manila

I'm pretty sure it's possible and saw it somewhere here. How do I put this in a single matrix, along with the descriptors like "roof angle, "1", "2E",...etc. and use it for interpolation. Well I can get by using a single column matrix as a work around but I guess I want a more compact looking solution, if that makes sense.

Envelope Procedure, GCpf.PNG

Edited by user 17 January 2024 22:02:09(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 17 January 2024 22:00:11(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Look for InterpBilinear() function.
You can find more info in Reference Book.

Regards

InterpBilinear.sm (9kb) downloaded 9 time(s).

2024-01-17_11-07.png

Edited by user 17 January 2024 22:07:05(UTC)  | Reason: Not specified

Offline GFDIntano  
#3 Posted : 17 January 2024 22:03:13(UTC)
GFDIntano

Rank: Newbie

Groups: Registered
Joined: 09/05/2023(UTC)
Posts: 8
Philippines
Location: Manila

ohh didn't know about that. big thanks.
Offline Jean Giraud  
#4 Posted : 18 January 2024 00:02:20(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Surface plot is especially coded for your request.
Jean

Interpolate [Linterp, Spline2D] Copy.sm (202kb) downloaded 5 time(s).
Offline overlord  
#5 Posted : 18 January 2024 02:45:37(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Using linterp() with a function is another way.
Function selects column according to input.

Regards

linterp_select.sm (9kb) downloaded 7 time(s).

2024-01-17_15-39.png
Offline GFDIntano  
#6 Posted : 18 January 2024 16:10:49(UTC)
GFDIntano

Rank: Newbie

Groups: Registered
Joined: 09/05/2023(UTC)
Posts: 8
Philippines
Location: Manila

I'm quite satisfied with the InterpBilinear function. I'm exploring Jean's and overlord's additional suggestion but still it was already solved for me. Another question is that would that still work if I had to do interpolation in both the column values and row values such as in case below.

linterp.PNG

From what I understand, InterBilinear() seems incapable of doing what I aim to do. Do you have any suggestions?
Offline mkraska  
#7 Posted : 19 January 2024 00:37:38(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
2024-01-18 11_36_38-Reference book.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#8 Posted : 19 January 2024 01:10:51(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: GFDIntano Go to Quoted Post
From what I understand, InterBilinear() seems incapable of doing what I aim to do. Do you have any suggestions ?

If, I understand your request,
ForLoop algo style will do ... last example page 10.
Jean

Interpolate [Linterp, Spline2D].sm (213kb) downloaded 1 time(s).
Offline overlord  
#9 Posted : 19 January 2024 02:25:30(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Originally Posted by: GFDIntano Go to Quoted Post
From what I understand, InterBilinear() seems incapable of doing what I aim to do. Do you have any suggestions?

On the contrary, InterpBilinear() does exactly what you seek.
It interpolates both row and column values.
PS: I added extra values to accommodate ≤ and ≥ boundaries.

Regards

2024-01-18_15-23.png
Offline Jean Giraud  
#10 Posted : 20 January 2024 10:15:39(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: GFDIntano Go to Quoted Post
I want a more compact looking solution, if that makes sense.

Visit Samples for bidirectional interpolating Matrix.
Jean

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.