find

Type: External

Group: matrix

Syntax

find(matrix)
find(matrix, n)

Description

Finds all the non zero elements of a matrix

Examples

find([0,1,0,1])   = [2;4]
find([0,1,0,1],1) = [2]

See Also