Main Content
mxGetM (Fortran)
Number of rows in mxArray
Fortran Syntax
#include "fintrf.h" mwPointer mxGetM(pm) mwPointer pm
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 pm
points to a
four-dimensional array having dimensions
8
-by-9
-by-5
-by-3
,
then mxGetM
returns 8
.
Note
Fortran does not have an equivalent of size_t
. mwPointer
is a preprocessor macro
that provides the appropriate Fortran type. The value returned by
this function, however, is not a pointer.
Input Arguments
Examples
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/eng_mat
Version History
Introduced before R2006a