3-42
Example 1
To check the dimensions of Matrix A
K
2
(MAT)
6
(
g
)
2
(Dim)
6
(
g
)
1
(Mat)
a1
(A-E)
1
(A)
w
The display shows that Matrix A consists of two rows and three columns.
Since the result of the Dim command is list type data, it is stored in ListAns Memory.
You can also use {Dim} to specify the dimensions of the matrix.
Example 2
To specify dimensions of 2 rows and 3 columns for Matrix B
!
a
(CATALOG)
a6
(SYBL)
4
(
9
)
c
~
c
( { )
w
c,d
!
a
(CATALOG)
c
( } )
1
(INPUT)
!K
(
→
)
K
2
(MAT)
6
(
g
)
2
(Dim)
6
(
g
)
1
(Mat)
a1
(A-E)
2
(B)
w
u
Modifying Matrices Using Matrix Commands
You can also use matrix commands to assign values to and recall values from an existing
matrix, to fill in all cells of an existing matrix with the same value, to combine two matrices into
a single matrix, and to assign the contents of a matrix column to a list file.
u
To assign values to and recall values from an existing matrix
[OPTN]
-
[MAT]
-
[Mat]
Use the following format with the Mat command to specify a cell for value assignment and
recall.
Mat X [
m
,
n
]
X = matrix name (A through Z, or Ans)
m
= row number
n
= column number
Example 1
To assign 10 to the cell at row 1, column 2 of the following matrix:
Matrix A =
1 2
3 4
5 6
ba
!K
(
→
)
K
2
(MAT)
1
(Mat)
a1
(A-E)
1
(A)
!
a
(CATALOG)
a6
(SYBL)
4
(
9
)
c
~
c
( [ )
w
b,c
!
a
(CATALOG)
c
( ] )
1
(INPUT)
w