find: MATLAB find function

View source: R/find.R

findR Documentation

MATLAB find function

Description

Finds indices of elements.

Usage

find(x)

Arguments

x

expression to evaluate

Details

If expression is not logical, finds indices of nonzero elements of argument x.

Value

Returns indices of corresponding elements matching the expression x.

Author(s)

P. Roebuck proebuck1701@gmail.com

Examples

find(-3:3 >= 0)
find(c(0, 1, 0, 2, 3))

matlab documentation built on June 2, 2022, 1:09 a.m.