| MATLAB Application Program Interface | Search  Help Desk |
| mxGetN | See Also |
Get the total number of columns
Fortran Syntax
integer*4 function mxGetN(pm) integer*4 pm
Arguments
pmmxArray.
Returns
The number of columns in themxArray.
Description
CallmxGetN to determine the number of columns in the specified mxArray.
If pm points to a sparse mxArray, mxGetN still returns the number of columns, not the number of occupied columns.
See Also
mxGetM, mxSetM, mxSetN