MATLAB Application Program Interface
  Go to function:
    Search    Help Desk 
mxGetNumberOfElements    Examples   See Also

Get number of elements in an array

C Syntax

Arguments

array_ptr
  Pointer to an mxArray.

Returns

Number of elements in the specified mxArray.

Description

mxGetNumberOfElements tells you how many "pieces" an array has. Use mxGetClassID to find out what the pieces are. These two functions provide the highest-level information about an array.

Example

See mxgetnumberofelements.c in the mx subdirectory of the examples directory.

See Also

mxGetDimensions, mxGetM, mxGetN, mxGetClassID, mxGetClassName



[ Previous | Help Desk | Next ]