Difference between revisions of "TI-BASIC:List Matr"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(Automated internal link correction)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
|picture=LISTTOMATR.GIF
 
|picture=LISTTOMATR.GIF
 
|summary=Builds a matrix from one or more lists.
 
|summary=Builds a matrix from one or more lists.
|syntax=List►matr(''list1'', @@[@@''list2'', ...], ''matrix''
+
|syntax=List►matr(''list1'', <nowiki>[</nowiki>''list2'', ...], ''matrix''
 
|location=Press:
 
|location=Press:
 
# MATRX (on the 83) or 2nd MATRX (83+ or higher) to access the matrix menu
 
# MATRX (on the 83) or 2nd MATRX (83+ or higher) to access the matrix menu
Line 43: Line 43:
 
= Related Commands =
 
= Related Commands =
  
* [[TI-BASIC:Matr►list(|Matr►list(]][[Category:TI-BASIC]]
+
* [[TI-BASIC:Matr_List|Matr►list(]][[Category:TI-BASIC]]
 
[[Category:TIBD]]
 
[[Category:TIBD]]

Latest revision as of 23:21, 24 February 2016

LISTTOMATR.GIF

Command Summary

Builds a matrix from one or more lists.

Command Syntax

List►matr(list1, [list2, ...], matrix

Menu Location

Press:

  1. MATRX (on the 83) or 2nd MATRX (83+ or higher) to access the matrix menu
  2. LEFT to access the MATH submenu
  3. 9 to select List►matr(, or use arrows.

Alternatively, press:

  1. 2nd LIST to access the list menu
  2. LEFT to access the OPS submenu
  3. 0 to select List►matr(, or use arrows

Calculator Compatibility

TI-83/84/+/SE

Token Size

2 bytes

The List►matr( builds a matrix by combining several list expressions, and stores it to the specified variable ([A] through [J]). Each list specifies a column of the matrix: the first list will be stored down the first (leftmost) column, the second list down the second column, and so on. For example:

List►matr({1,2,3},{10,20,30},{100,200,300},[A]
		Done
[A]
		[[1 10 100]
		 [2 20 200]
		 [3 30 300]]

Advanced Uses

The calculator can actually handle lists that are not the same size. It will pad zeroes to the shorter lists, until they have the same length as the longest list.

List►matr({1,2,3},{10},{100,200},[A]
		Done
[A]
		[[1 10 100]
		 [2  0 200]
		 [3  0   0]]

Error Conditions

  • ERR:ARGUMENT is thrown if there are more than 99 lists (since a matrix can be at most 99x99)
  • ERR:INVALID DIM is thrown if one of the lists is longer than 99 elements (since a matrix can be at most 99x99)

Related Commands