functionlinspace_2Dcorner

Create a linearly spaced 2D matrix from the linear interpolation of 4 corner values

Extends from TRANSFORM.Icons.Function (Icon for functions).

Information

For example:

For x1=0, x2=10, x3=-5, x4 = 5, n1=5, and n2=3.

The returned matrix is y[5,3]

0

5

10

-1.25

3.75

8.75

-2.5

2.5

7.5

-3.75

1.25

6.25

-5

0

5


Notice that the corner values are consistent with the specified input.

Inputs

TypeNameDefaultDescription
Realx1Corner value x[1,1]
Realx2Corner value x[1,end]
Realx3Corner value x[end,1]
Realx4Corner value x[end,end]
Integern1Number of rows
Integern2Number of columns

Outputs

TypeNameDefaultDescription
Real[n1,n2]y2-D matrix