CASTI-89 TITANIUM · CALC89
newMat(
Returns a matrix of zeros with the given number of rows and columns.
Syntax
newMat(rows, cols)
- Group
- Matrix
- Arguments
- Takes the number of rows and the number of columns.
- Availability
- Included
Example
| Input | Result |
|---|---|
| newMat(2,3) | [[0,0,0][0,0,0]] |
Typing newMat(2,3) on the home screen and pressing ENTER returns [[0,0,0][0,0,0]].
Related commands
- norm(Returns the Frobenius norm of a matrix; for a vector this is its length.
- QRComputes the QR factorization of a matrix and stores the orthogonal matrix q and the upper triangular matrix r in variables.
- randMat(Returns a matrix of the given size filled with random integers.
- ref(Returns the row echelon form of a matrix, the result of forward Gaussian elimination.
- rowAdd(Adds one row of a matrix to another row and returns the new matrix.
- rowDim(Returns the number of rows of a matrix.
- rowNorm(Returns the row norm of a matrix, the largest sum of the absolute values of the entries in any row.
- rowSwap(Swaps two rows of a matrix and returns the new matrix.