External Interfaces Reference Previous page   Next Page
mxGetN

Get number of columns in mxArray

Fortran Syntax

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.

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, mxSetM, mxSetN


Previous page  mxGetM mxGetName (Obsolete) Next page

© 1994-2005 The MathWorks, Inc.