Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

find

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)

Examples

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

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.