| MATLAB Application Program Interface | Search  Help Desk |
| mxSetImagData | See Also |
Set imaginary data pointer for an mxArray
#include "matrix.h" void mxSetImagData(mxArray *array_ptr, void *pi);array_ptr
mxArray.
pi
mxCalloc to allocate this dynamic memory. If pi points to static memory, memory leaks and other memory errors may result.
mxSetImagData is similar to mxSetPi, except it returns a void *. Use this on numeric arrays with contents other than double.
mxSetPi