External Interfaces/API Reference | ![]() ![]() |
Get the total number of columns
Fortran Syntax
integer*4 function mxGetN(pm) integer*4 pm
Arguments
pm
Pointer to an mxArray
.
Returns
The number of columns in the mxArray
.
Description
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.
See Also
![]() | mxGetM | mxGetName | ![]() |