127
Chapter 6: Matrix Features
03 cumul cumul
matrix name
Returns the cumulative matrix.
Example
• Obtain the cumulative sum of
mat A.
cumulative sum of
a
ij
=
a
i1
+
a
i2
+
......
+
a
ij
04 augment( augment(
matrix name
,
matrix name
)
Appends the second matrix to the first matrix as new columns. The
first and second matrices must have the same number of rows.
Example
• Create a new matrix with matrix A augmented by matrix B.
05 identity identity
dimension value
Returns the identity matrix with specified value of rows and
columns.
Example
• Create the identity matrix of
3 rows
×
3 columns.
06 rnd_mat( rnd_mat(
number of row
,
number of column
)
Returns a random matrix with specified values of rows and
columns.
Example
• Create a matrix of 2 rows
×
3 columns with generated
random values.
(when TAB = 2 and FSE = “FIX”
at SETUP menu)