### MX_ATSET – Set Matrix/Vector element

Block SymbolLicensing group: STANDARD

Function Description
The function block MX_ATSET sets the value (input value) to the matrix element at the i-th row and j-th column or to the i-th vector element.

The output reference yMV is always set to the corresponding input reference uMV to the connected matrix/vector.

The error flag E is set to on if:

• the reference uMV is not defined (i.e. input uMV is not connected),
• the zero based row index $\mathtt{\text{i}}<0$ or $\mathtt{\text{i}}\ge \mathtt{\text{m}}$, where m is the number of rows,
• the zero based column index $\mathtt{\text{j}}<0$ or $\mathtt{\text{j}}\ge \mathtt{\text{n}}$, where n is the number of columns. Note that j must be $0$ for a vector.

Inputs

 uMV Input reference to a matrix or vector Reference i Row index of the element  $↓$0 $\odot$0.00E+00 Long (I32) j Column index of the element  $↓$0 $\odot$0.00E+00 Long (I32) value Value which should be set to the element at position (i,j) Long (I32)

Outputs

 yMV Output reference to a matrix or vector Reference E Error indicator Bool

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