mxIsSparse (C)
Determine whether input is sparse mxArray
C Syntax
#include "matrix.h" bool mxIsSparse(const mxArray *pm);
Description
mxIsSparse returns logical 1
(true) if pm points to a sparse
mxArray. Otherwise, it returns logical 0
(false). Many routines (for example, mxGetIr
and mxGetJc) require a sparse mxArray as
input.
Input Arguments
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","refbook","filename")]);
where filename is:
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename is:
Version History
Introduced before R2006a