Previous Up Next

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

Recall that a matrix is a list of lists with 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 the 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