Real data elements in mxINT16_CLASS array
mxINT16_CLASS
#include "matrix.h" mxInt16 *mxGetInt16s(const mxArray *pa);
expand all
pa
const mxArray *
Pointer to an mxINT16_CLASS array.
dt
mxInt16 *
Pointer to the first mxInt16 element of the data. If pa is NULL, then the function returns NULL.
mxInt16
NULL
If mxArray is not an mxINT16_CLASS array:
mxArray
MEX file — Function terminates the MEX file and returns control to the MATLAB® prompt.
Standalone (non-MEX file) application — Function returns NULL. A NULL return value indicates that pa is either empty or not an mxINT16_CLASS array.
See these examples in matlabroot/extern/examples/mex:
matlabroot/extern/examples/mex
matlabroot
explore.c
This function is available in the interleaved complex API. To build myMexFile.c using this function, type:
myMexFile.c
mex -R2018a myMexFile.c
mxGetComplexInt16s | mxGetUint16s | mxSetInt16s
mxGetComplexInt16s
mxGetUint16s
mxSetInt16s