Main Content

mxGetComplexSingles (C)

Complex data elements inmxSINGLE_CLASSarray

C Syntax

#include "matrix.h" mxComplexSingle *mxGetComplexSingles(const mxArray *pa);

Input Arguments

expand all

Pointer to anmxSINGLE_CLASSarray.

Output Arguments

expand all

Pointer to the firstmxComplexSingleelement of the data. IfpaisNULL, then the function returnsNULL.

IfmxArrayis not anmxSINGLE_CLASS数组:

  • MEX file — Function terminates the MEX file and returns control to the MATLAB®prompt.

  • Standalone (non-MEX file) application — Function returnsNULL. ANULLreturn value indicates thatpais either empty or not anmxSINGLE_CLASSarray.

Examples

See these examples inmatlabroot/extern/examples/mex:

API Version

This function is available in the interleaved complex API. To buildmyMexFile.cusing this function, type:

mex-R2018amyMexFile.c
Introduced in R2018a