Wilang Documentation1.0.0+4

column#

Return a column from a matrix or array.

Available in: math cells, REPL.

Syntax#

column(x, index)

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
A = [[1, 2], [3, 4]]
column(A, 1)

Expected result: matrix.

See also#

row · matrixFromColumns

All functions · Math guides