127
Chapter 6: Matrix Features
03 cumul cumul matrix name
Returnsthecumulativematrix.
Example
• Obtainthecumulativesumof
matA.
cumulative sum of
a
ij
=
a
i1
+
a
i2
+
......
+
a
ij
04 augment( augment(matrix name, matrix name)
Appendsthesecondmatrixtotherstmatrixasnewcolumns.The
first and second matrices must have the same number of rows.
Example
• CreateanewmatrixwithmatrixAaugmentedbymatrixB.
05 identity identity dimension value
Returnstheidentitymatrixwithspeciedvalueofrowsand
columns.
Example
• Createtheidentitymatrixof
3 rows
×
3 columns.
06 rnd_mat( rnd_mat(number of row, number of column)
Returnsarandommatrixwithspeciedvaluesofrowsand
columns.
Example
• Createamatrixof2rows
×
3 columns with generated
random values.
(whenTAB=2andFSE=“FIX”
atSETUPmenu)