| MATLAB Compiler | ![]() |
int NumberOfElements() const
Return number of elements in this array.
C++ syntax
#include "mclcppclass.h" mwArray a(2, 2, mxDOUBLE_CLASS); int n = a.NumberOfElements();// Should return 4
Arguments
Return value
Number of elements in this array.
Description
Use this method to determine the total size of the array.
| int ElementSize() const | int NumberOfNonZeros() const | ![]() |
© 1994-2005 The MathWorks, Inc.