Main Content

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

expand all

Pointer to an mxArray array, specified as const mxArray*.

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:

See Also

Introduced before R2006a