External Interfaces Reference Previous page   Next Page
mxGetNumberOfElements

Get number of elements in mxArray

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


Previous page  mxGetNumberOfDimensions mxGetNumberOfFields Next page

© 1994-2005 The MathWorks, Inc.