Real data elements in mxINT8_CLASS array
mxINT8_CLASS
#include "matrix.h" mxInt8 *mxGetInt8s(const mxArray *pa);
expand all
pa
const mxArray *
Pointer to an mxINT8_CLASS array.
dt
mxInt8 *
Pointer to the first mxInt8 element of the data. If pa is NULL, then the function returns NULL.
mxInt8
NULL
If mxArray is not an mxINT8_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 mxINT8_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
mxGetComplexInt8s | mxGetUint8s | mxSetInt8s
mxGetComplexInt8s
mxGetUint8s
mxSetInt8s