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

nonzeros (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

c = nonzeros(a)

Description

Returns the non-zero elements in a matrix.

Examples

Inputs

Name Description
a Specifies a matrix.

Outputs

Name Description
c Returns all non-zero elements of a. c is a column vector.

Examples

A = [1, 2, 3; 0, 0, 0; 0, 2, 3]
C = nonzeros(A)

Related Topics

find
nnz


Resources


 

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