mxIsComplex (C)
Determine whether data is complex
C Syntax
#include "matrix.h" bool mxIsComplex(const mxArray *pm);
Description
Use mxIsComplex
to determine whether an imaginary part is allocated
for an mxArray
. If an mxArray
does not have any
imaginary data, then the imaginary pointer pi
is NULL
.
If an mxArray
is complex, then pi
points to an array of
numbers.
Input Arguments
Examples
See these examples in
:matlabroot
/extern/examples/mx
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/mex
Version History
Introduced before R2006a