External Interfaces/API Reference | ![]() ![]() |
Set imaginary data pointer for an mxArray
C Syntax
#include "matrix.h" void mxSetImagData(mxArray *array_ptr, void *pi);
Arguments
array_ptr
Pointer to an mxArray
.
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 to mxSetPi
, except it returns a void *. Use this on numeric arrays with contents other than double.
Example
See mxisfinite.c
in the mx
subdirectory of the examples
directory.
See Also
![]() | mxSetFieldByNumber | mxSetIr | ![]() |