MATLAB Application Program Interface Reference Help Desk

mxGetN

Purpose

Get the total number of columns

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.

See Also

mxGetM, mxSetM, mxSetN



[ Previous | Help Desk | Next ]