User Manual
2-43
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
baaK2(MAT) 1(Mat)
av(A) !+( ) b,c
!-( )w
• The “Vct” command can be used to assign values to existing vectors.
Example 2 Multiply the value in the cell at row 2, column 2 of the above matrix by 5
K2(MAT) 1(Mat)
av(A) !+( ) c,c
!-( )*fw
• The “Vct” command can be used to recall values from existing vectors.
u To fill a matrix with identical values and to combine two matrices into a
single matrix
[OPTN]-[MAT]-[Fill]/[Aug]
Use the Fill command to fill all the cells of an existing matrix with an identical value and the
Augment command to combine two existing matrices into a single matrix.
Example 1 To fill all of the cells of Matrix A with the value 3
K2(MAT) 6( g) 3(Fill)
d,6( g) 1(Mat) av(A) w
1(Mat)av(A)w
• The “Fill” command can be used to write the same value into all vector elements.