row

Type: M-File

Group: matrix

Syntax

row(matrix, n)

Description

Returns the specified row of a matrix.

Examples

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

See Also

col, rows, columns