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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x1 | Corner value x[1,1] | |
| Real | x2 | Corner value x[1,end] | |
| Real | x3 | Corner value x[end,1] | |
| Real | x4 | Corner value x[end,end] | |
| Integer | n1 | Number of rows | |
| Integer | n2 | Number of columns |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[n1,n2] | y | 2-D matrix |