| MATLAB Application Program Interface | Search  Help Desk |
| mxGetN | See Also |
Get the total number of columns
integer*4 function mxGetN(pm) integer*4 pmpm
mxArray.
The number of columns in the mxArray.
Call mxGetN 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.
mxGetM, mxSetM, mxSetN