mxGetNumberOfDimensions (C)
Number of dimensions in mxArray
C Syntax
#include "matrix.h" mwSize mxGetNumberOfDimensions(const mxArray *pm);
Description
mxGetNumberOfDimensions returns the number of dimensions in the
specified mxArray. The returned value is always 2 or
greater.
To determine how many elements are in each dimension, call mxGetDimensions.
Input Arguments
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mex","filename")]);
where filename is:
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:
Version History
Introduced before R2006a