This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Number of data elements in an array

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




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.

Extended Capabilities

Introduced before R2006a

Was this topic helpful?