External Interfaces Reference Previous page   Next Page
mxGetM

Get number of rows in mxArray

C Syntax

Arguments

array_ptr
   Pointer to an array.

Returns

The number of rows in the mxArray to which array_ptr points.

Description

mxGetM returns the number of rows in the specified array. The term rows always means the first dimension of the array no matter how many dimensions the array has. For example, if array_ptr points to a four-dimensional array having dimensions 8-by-9-by-5-by-3, then mxGetM returns 8.

Examples

See convec.c in the refbook subdirectory of the examples directory.

For additional examples, see fulltosparse.c, revord.c, timestwo.c, and xtimesy.c in the refbook subdirectory of the examples directory; see mxmalloc.c and mxsetdimensions.c in the mx subdirectory of the examples directory; see mexget.c, mexlock.c, mexsettrapflag.c, and yprime.c in the mex subdirectory of the examples directory.

See Also

mxGetN, mxSetM, mxSetN


Previous page  mxGetLogicals mxGetN Next page

© 1994-2005 The MathWorks, Inc.