indexedAssign

Block Category: Matrix Operation

Description: The indexedAssign block assigns an element to a matrix. The input connectors labeled “c” and “r” indicate the column and row of the matrix to which the element is assigned; the bottom input connector represents the element value; and the green input connector accepts the matrix.

Do not modify input matrix: Makes a copy of the input matrix before performing the assignment.

 

Example

The value 5 is inserted into the second row, second column of the matrix.