Main Content

mxIsSparse (Fortran)

Determine whether input is sparse mxArray

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsSparse(pm)
mwPointer pm


mxIsSparse returns 1 if pm points to a sparse mxArray. Otherwise, it returns 0. Many routines (for example, mxGetIr and mxGetJc) require a sparse mxArray as input.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.


See these examples in matlabroot/extern/examples/mx:

Version History

Introduced before R2006a