Complex data elements in mxDOUBLE_CLASS array
mxDOUBLE_CLASS
#include "fintrf.h" mwPointer mxGetComplexDoubles(pa) mwPointer pa
expand all
pa
mwPointer
0
Pointer to an mxDOUBLE_CLASS array.
dt
Pointer to the first mxComplexDouble element of the data. If pa is 0, then the function returns 0.
mxComplexDouble
If mxArray is not an mxDOUBLE_CLASS array:
mxArray
MEX file — Function terminates the MEX file and returns control to the MATLAB® prompt.
Standalone (non-MEX file) application — Function returns 0. A 0 return value indicates that pa is either empty or not an mxDOUBLE_CLASS array.
See these examples in matlabroot/extern/examples/refbook:
matlabroot/extern/examples/refbook
matlabroot
convec.F
complexAdd.F
This function is available in the interleaved complex API. To build myMexFile.F using this function, type:
myMexFile.F
mex -R2018a myMexFile.F
mxSetComplexDoubles (Fortran)