mxIsComplex (C) - Determine whether data is complex - MATLAB (original) (raw)
Main Content
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
Pointer to an mxArray
array, specified as const mxArray*
.
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","mx","filename")]);
where filename
is:
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","mex","filename")]);
where filename
is:
Version History
Introduced before R2006a