Documentation Center

  • Trial Software
  • Product Updates

numberofelements

Number of data elements in an array

    Note:   numberofelements will be removed in a future release. Use numel instead.

Syntax

numberofelements(a)

Description

numberofelements(a) returns the number of data elements in an array. Using numberofelements in your MATLAB® code returns the same result for built-in types and fi objects. Use numberofelements to write data-type independent MATLAB code for array handling.

See Also

| | | | | |

Was this topic helpful?