External Interfaces/API Reference |
Get number of elements in an array
Fortran Syntax
Arguments
Returns
Number of elements in the specified mxArray
.
Description
mxGetNumberOfElements
tells you how many elements an mxArray
has. For example, if the dimensions of an array are 3-by-5-by-10, then mxGetNumberOfElements
will return the number 150
.
See Also
mxGetDimensions
, mxGetM
, mxGetN
, mxGetClassName
mxGetNumberOfDimensions | mxGetNumberOfFields |