Creating a Matrix
with dim(
Redimensioning a
Matrix with dim(
Fill(
identity(
randM(
with ¿ to create a new matrixname of
Use
dim(
dimensions rows × columns with
rows
columns
{
,
}!dim(
with ¿ to redimension an existing
Use
dim(
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(
stores value to every element in matrixname.
Fill(
value
matrixname
Fill(
,
returns the identity matrix of dimension rows ×
identity(
dimension columns.
dimension
identity(
(create random matrix) returns a rows × columns
randM(
random matrix of integers ‚ L 9 and 9. The seed value
stored to the
rand
rows
columns
randM(
,
0
matrixname
)
matrixname
)
)
)
function controls the values (Chapter 2).
)
as each element.
Matrices 10-13