| MATLAB Application Program Interface Reference | Help Desk |
mxGetN
Get the total number of columns
integer*4 function mxGetN(pm) integer*4 pmpm 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