Table Of Contents

numelements

Version:
    Last Modified: January 9, 2017

    Returns the number of elements in an array of any dimension.

    Syntax

    c = numelements(a)
    Legacy name: numel

    Inputs

    a

    Array of any dimension.

    Outputs

    c

    Number of elements in a. c is an integer.

    A = ones(3, 4)
    C = numelements(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics