Chapter 10: Matrices
157
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).
randM(
rows
,
columns
)
augment(
augment(
appends
matrixA
to
matrixB
as new columns.
matrixA
and
matrixB
both must have the same
number of rows.
augment(
matrixA
,
matrixB
)
Matr
4
list(
Matr
4
list(
(matrix stored to list) fills each
listname
with elements from each column in
matrix
.
Matr
4
list(
ignores extra
listname
arguments. Likewise,
Matr
4
list(
ignores extra
matrix
columns.
Matr
4
list(
matrix
,
listnameA
,
...
,
listname n
)