
| Command Summary | Command Syntax | Calculator Compatibility | Token Size |
|---|---|---|---|
| returns a new matrix filled with 0s given the dimensions provided | newMat(rows,cols) newMat(rows,cols) |
This command works on all calculators. | ~8 byte(s) |
Menu Location
- Press 2nd MATH to enter the MATH popup
- Press 4 to enter the Matrix submenu
- Press F ( Alpha
newMat
When integers are used as arguments, newMat() returns an empty matrix of the specified dimensions filled with zeros. When any type other than integers are used as as arguments, newMat returns a Data Type error.
newMat(3,2)
[[0,0][0,0][0,0]]
Advanced Uses
Can be used to pre-allocate matrices for programs.
Optimization
Error Conditions
210 - Data type happens when the data type specified as a dimension is invalid. See above..
Related Commands
Authors: