| MATLAB Application Program Interface | Search  Help Desk |
| mxSetImagData | Examples See Also |
Set imaginary data pointer for an mxArray
C Syntax
#include "matrix.h" void mxSetImagData(mxArray *array_ptr, void *pi);
Arguments
array_ptrmxArray.
pi
mxCalloc to allocate this dynamic memory. If pi points to static memory, memory leaks and other memory errors may result.
Description
mxSetImagData is similar tomxSetPi, except it returns a void *. Use this on numeric arrays with contents other than double.
Example
Seemxisfinite.c in the mx subdirectory of the examples directory.
See Also
mxSetPi