| MATLAB Application Program Interface | Search  Help Desk |
| mxIsSparse | See Also |
Inquire if an mxArray is sparse
Fortran Syntax
integer*4 function mxIsSparse(pm) integer*4 pm
Arguments
pmmxArray.
Returns
1 if themxArray is sparse, 0 otherwise.
Description
UsemxIsSparse to determine if an mxArray is stored in sparse form. Many routines (for example, mxGetIr and mxGetJc) require a sparse mxArray as input.
There are no corresponding set routines. Use mxCreateSparse to create sparse mxArrays.
See Also
mxGetIr, mxGetJc, mxIsFull