External Interfaces/API Reference    
mxSetImagData

Set imaginary data pointer for an mxArray

C Syntax

Arguments
array_ptr
   Pointer to an mxArray.

pi
   Pointer to the first element of an array. Each element in the array contains the imaginary component of a value. The array must be in dynamic memory; call 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

mxSetPi


 mxSetFieldByNumber mxSetIr