| External Interfaces Reference | ![]() |
Get number of columns in mxArray
Fortran Syntax
Arguments
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.
Example
See matdemo2.f in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use this routine in a Fortran program.
See Also
| mxGetM | mxGetName (Obsolete) | ![]() |
© 1994-2005 The MathWorks, Inc.