Main Content

mxGetComplexInt16s (C)

Complex data elements inmxINT16_CLASSarray

C Syntax

#include "matrix.h" mxComplexInt16 *mxGetComplexInt16s(const mxArray *pa);

Input Arguments

expand all

Pointer to anmxINT16_CLASSarray.

Output Arguments

expand all

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

IfmxArrayis not anmxINT16_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 anmxINT16_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