functionfillArray_2D

create a matrix from an array of values (i.e., fill(val[:],n1,n2)) for 2 dimensions

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

Information

For example:

For n1=3, n2=2, and val={-1,2,3,10}.

The returned matrix is y[3,2,4] where y[1,:,:] is:

-1

2

3

10

-1

2

3

10

Inputs

TypeNameDefaultDescription
Real[:]valArray of values for use in fill
Integern1Array size (i.e., fill(val[i],n1,n2))
Integern2Array size (i.e., fill(val[i],n1,n2))

Outputs

TypeNameDefaultDescription
Real[n1,n2,size(val, 1)]yMatrix