Function column #

Return column in Matrix.

Syntax #

math.column(value, index)    // retrieve a column

Parameters #

Parameter Type Description
value Array | Matrix An array or matrix
column number The index of the column

Returns #

Type Description
Array | Matrix The retrieved column

Examples #

// get a column
const d = [[1, 2], [3, 4]]
math.column(d, 1))        // returns [2, 4]

See also #

row

Fork me on GitHub