Previous Up Next

5.45.12  Extracting element(s) of a matrix : [] at

Recall that a matrix is a list of lists with the same size.
Input :


Output :


The prefixed function at or the index notation [...] is used to access to an element or a row or a column of a matrix:

You may also assign an element of a matrix using index notation, if you assign with := a new copy of the matrix is created and the element is modified, if you assign with =<, the matrix is modified in place.

Previous Up Next