2-7-28

Using the Action Menu

usubMat

Function: Extracts a specific section of a matrix into a new matrix.

Syntax: subMat (Mat [,start row] [,start column] [,end row] [,end column] [ ) ]

“1” is the default when you omit “[, start row]” and “[, start column]”.

The last row number is the default when you omit “[, end row]”.

The last column number is the default when you omit “[, end column]”.

Example: To extract the section from row 2, column 2, to row 3, column 3 from the matrix [[1,4,7] [2,5,8] [3,6,9]]

Menu Item: [Action][Matrix-Create][subMat]

udiag

Function: Returns a one-row matrix containing the elements from the main diagonal of a square matrix.

Syntax: diag (Mat[ ) ]

Example: To extract the diagonal elements of the matrix [[1,2] [3,4]]

Menu Item: [Action][Matrix-Create][diag]

umatToList

Function: Transforms a specific column of a matrix into a list.

Syntax: matToList (Mat, column number [ ) ]

Example: To transform column 2 of the matrix [[1,2] [3,4]] into a list

Menu Item: [Action][Matrix-Create][matToList]

20050501