External Interfaces/API Reference    
mxGetNumberOfElements

Get number of elements in an array

Fortran Syntax

Arguments

pm
   Pointer to an mxArray.

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