Skip to content
Property Value
Hex Value $BB39
Categories
Localizations
  • FR: Matr►list(

Matr►list(

Overview

Fills each listname with elements from each column in matrix.

Availability: Token available everywhere.

Syntax

Matr►list(matrix,listnameA,...,listname n)

Arguments

NameTypeOptional
matrixmatrix
listnameAlist
...
listname nlist

Location

2nd, list, OPS, A:Matr►list(


Overview

Fills a listname with elements from a specified column# in matrix.

Availability: Token available everywhere.

Syntax

Matr►list(matrix,column#,listname)

Arguments

NameTypeOptional
matrixmatrix
column#
listnamelist

Location

2nd, list, OPS, A:Matr►list(


Description

The Matr►list( command stores one or more columns of a matrix (or expression resulting in a matrix) to list variables. The syntax is simple: first enter the matrix, then enter the list or lists you want to store columns to. The first (leftmost) column will be stored to the first list entered, the second column will be stored to the second list, and so on. For example:

[[11,12,13,14][21,22,23,24][31,32,33,34
        [[11 12 13 14]
         [21 22 23 24]
         [31 32 33 34]]
Matr►list(Ans,L1,L2
        Done
L1
        {11 21 31}
L2
        {12 22 32}

If there are more lists than columns in the matrix when doing Matr►list(, the extra lists will be ignored.

Matr►list( can also be used to extract a specific column of a matrix to a list. The order of the arguments is: matrix, column number, list name.

[[11,12,13,14][21,22,23,24][31,32,33,34
        [[11 12 13 14]
         [21 22 23 24]
         [31 32 33 34]]
Matr►list(Ans,4,L1
        Done
L1
        {14 24 34}

Advanced Uses

While the command deals with columns, occasionally you might want to store the matrix to lists by rows. The T (transpose) command is your friend here: applying it to the matrix will flip it diagonally, so that all rows will become columns and vice-versa. For example:

[[11,12,13,14][21,22,23,24][31,32,33,34
         [[11 12 13 14]
         [21 22 23 24]
         [31 32 33 34]]
Matr►list(AnsT,L1,L2
         Done
L1
         {11 12 13 14}
L2
         {21 22 23 24}

Optimizations

When using Matr►list( to store to named lists, only the first list must have an ʟ in front of its name — it can be omitted for the rest. For example:

:Matr►list([A],ʟCOL1,ʟCOL2,ʟCOL3
can be
:Matr►list([A],ʟCOL1,COL2,COL3

On the other hand, when storing a specific column of a matrix to a named list, the list does not need to be preceded by an ʟ.

:Matr►list([A],N,ʟCOL1
can be
:Matr►list([A],N,COL1

Source: parts of this page were written by the following TI|BD contributors: burr, DarkerLine, GoVegan, thornahawk, Timothy Foster.

History

Calculator OS Version Description
TI-83 0.01013 Added

Last update: September 30, 2023 15:38:51
Created: February 23, 2023 23:15:01
Authors: Adrien Bertrand