Number of elements in numeric mxArray
#include "matrix.h" size_t mxGetNumberOfElements(const mxArray *pm);
mxGetNumberOfElements
returns the number of elements in the specified
mxArray
, returned as size_t
. For example, if the
dimensions of an array are 3-by-5-by-10, then mxGetNumberOfElements
returns the number 150
.
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/mx
See these examples in
:matlabroot
/extern/examples/mex
mxGetClassID
| mxGetClassName
| mxGetDimensions
| mxGetM
| mxGetN