MX_FILL – Fill real matrix or vector

Block SymbolLicensing group: STANDARD
PIC

Function Description
The function block MX_FILL fills elements of the matrix or vector referenced by uMV according to the input mode.

The output reference yMV is always set to the corresponding input references uMV. If HLD = on then nothing else is done.

The error flag E is set to on if:

  • the reference uMV is not defined (i.e. input uMV is not connected),
  • 0 > mode > 4.

Inputs

uMV

Input reference to a matrix or vector

Reference

value

Fill value of matrix/vector  0.0

Double (F64)

mode

Fill mode  0.00E+00

Long(I32)

0,1 ..

Value – All elements are set to value

2 ....

Ones – All elements are set to 1

3 ....

Diagonal value – Diagonal is set to value, the other elements to 0

4 ....

Diagonal ones – Initializes identity matrix (eye)

HLD

Hold

Bool

Outputs

yMV

Output reference to a matrix or vector

Reference

E

Error indicator

Bool

2022 © REX Controls s.r.o., www.rexygen.com