.TRANSFORM.Math.linspace_2Dcorner

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.

Interface

function linspace_2Dcorner
  extends TRANSFORM.Icons.Function;
  input Real x1 "Corner value x[1,1]";
  input Real x2 "Corner value x[1,end]";
  input Real x3 "Corner value x[end,1]";
  input Real x4 "Corner value x[end,end]";
  input Integer n1 "Number of rows";
  input Integer n2 "Number of columns";
  output Real y[n1, n2] "2-D matrix";
end linspace_2Dcorner;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos