Real data elements in mxINT32_CLASS array
mxINT32_CLASS
#include "matrix.h" mxInt32 *mxGetInt32s(const mxArray *pa);
expand all
pa
const mxArray *
Pointer to an mxINT32_CLASS array.
dt
mxInt32 *
Pointer to the first mxInt32 element of the data. If pa is NULL, then the function returns NULL.
mxInt32
NULL
If mxArray is not an mxINT32_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 mxINT32_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
mxGetComplexInt32s | mxGetUint32s | mxSetInt32s
mxGetComplexInt32s
mxGetUint32s
mxSetInt32s