|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
returns a new matrix filled with 0s given the dimensions provided
newMat(rows,cols)
newMat(rows,cols)
Menu Location
- Press 2nd MATH to enter the MATH popup
- Press 4 to enter the Matrix submenu
- Press F ( Alpha
This command works on all calculators.
~8 byte(s)
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..
