Main Content
mxSetImagData (C)
Set imaginary data elements in numeric mxArray
mxSetImagData
is not available in the interleaved complex API. Use
typed, data-access functions instead. For more information, see Version History.
C Syntax
#include "matrix.h" void mxSetImagData(mxArray *pm, void *pi);
Description
The mxSetImagData
function is similar to
mxSetPi
, except that in C, its pi
argument
is a void *
. Use this function on numeric arrays with contents other
than double
.
The mxSetImagData
function does not free memory allocated for
existing data. To free existing memory, call mxFree
on the pointer
returned by mxGetImagData
.