mxGetM (C)
Number of rows in mxArray
C Syntax
#include "matrix.h" size_t mxGetM(const mxArray *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.
Input Arguments
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","refbook","filename")]);
where filename is:
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename is:
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mex","filename")]);
where filename is:
Version History
Introduced before R2006a