col

Type: M-File

Group: matrix

Syntax

col(matrix, n)

Description

returns the specified column from a matrix.

Notes

.

Examples

col([1,2;3,4], 1) = [1;3]
col([1,2;3,4], 2) = [2;4]

See Also

columns, rows, row