Table Of Contents

nz

Version:
    Last Modified: January 9, 2017

    Returns the non-zero elements in a matrix.

    Syntax

    c = nz(a)
    Legacy name: nonzeros

    Inputs

    a

    Array of any dimension.

    Outputs

    c

    Non-zero elements of a. c is the same dimension as a reduced by one.

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

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics