Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

find (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the linalgebra class.

Syntax

[i, j] = find(a)

[i, j, c] = find(a)

Description

Returns the indexes of all non-zero elements in a matrix.

Examples

Inputs

Name Description
a Specifies a matrix.

Outputs

Name Description
i Returns the first indexes of all non-zero elements of a. i is a column vector.
j Returns the second indexes of all non-zero elements of a. j is a column vector.
c Returns all non-zero elements of a. c is a column vector.

Examples

A = [1, 2, 3; 0, 0, 0; 0, 2, 3]
[I, J] = find(A)

Related Topics

nonzeros


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit