Operation Manual

Chapter 10: Matrices 159
Redimensioning a Matrix with dim(
Use dim( with ¿ to redimension an existing matrixname to dimensions rows × columns. The elements
in the old
matrixname that are within the new dimensions are not changed. Additional created elements
are zeros. Matrix elements that are outside the new dimensions are deleted.
{rows,columns}"dim(matrixname)
Fill(
Fill( stores value to every element in matrixname.
Fill(value,matrixname)
identity(
identity( returns the identity matrix of dimension rows × dimension columns.
identity(dimension)
randM(
randM( (create random matrix) returns a rows × columns random matrix of integers
L
9 and 9. The
seed value stored to the
rand function controls the values (Chapter 2).