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 errors will result when the array is destroyed.

Description

mxSetImagData is similar to mxSetPi, except its pi argument is a void *. Use this on numeric arrays with contents other than double.

Examples

See mxisfinite.c in the mx subdirectory of the examples directory.

See Also

mxSetPi


  mxSetFieldByNumber mxSetIr