linterp help

linterp help - Poruke

#1 Objavljeno: 17. 1. 2024. 10:19:48
GFDIntano

GFDIntano

0 svidjanja u 8 postova.

Grupa: User

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
#2 Objavljeno: 17. 1. 2024. 16:00:11
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Look for InterpBilinear() function.
You can find more info in Reference Book.

Regards

InterpBilinear.sm (8,04 KiB) preuzeto 1602 put(ova).

2024-01-17_11-07.png
#3 Objavljeno: 17. 1. 2024. 16:03:13
GFDIntano

GFDIntano

0 svidjanja u 8 postova.

Grupa: User

ohh didn't know about that. big thanks.
#4 Objavljeno: 17. 1. 2024. 18:02:20
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Surface plot is especially coded for your request.
Jean

Interpolate [Linterp, Spline2D] Copy.sm (201,25 KiB) preuzeto 1406 put(ova).
#5 Objavljeno: 17. 1. 2024. 20:45:37
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Using linterp() with a function is another way.
Function selects column according to input.

Regards

linterp_select.sm (8,1 KiB) preuzeto 1607 put(ova).

2024-01-17_15-39.png
#6 Objavljeno: 18. 1. 2024. 10:10:49
GFDIntano

GFDIntano

0 svidjanja u 8 postova.

Grupa: User

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?
#7 Objavljeno: 18. 1. 2024. 18:37:38
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

2024-01-18 11_36_38-Reference book.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Objavljeno: 18. 1. 2024. 19:10:51
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

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 (212,07 KiB) preuzeto 1502 put(ova).
#9 Objavljeno: 18. 1. 2024. 20:25:30
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

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
#10 Objavljeno: 20. 1. 2024. 04:15:39
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I want a more compact looking solution, if that makes sense.


Visit Samples for bidirectional interpolating Matrix.
Jean

  • Novi postovi
  • Nema novih postova