mxSetData (Fortran) - Set pointer to data elements in nonnumeric
mxArray - MATLAB ([original](https://www.mathworks.com/help/matlab/apiref/mxsetdata%5Ffortran.html)) ([raw](?raw))
For a complex numeric mxArray
, themxSetData
function sets different values based on themex
build option.
If you build the MEX file with the default release-specific option (-R2017b
), then the function sets the elements of the array to the real-only values.
If you build the MEX file with the -R2018a
option, then:
- When
pm
is a real array,pa
becomes the real component ofpm
. - When
pm
is complex array,pa
also must be complex. Otherwise, the elements ofpa
become interleaved real and imaginary values, not real-only values.