MATLAB Application Program Interface Reference Help Desk

mxSetImagData

Purpose

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.

See Also

mxSetPi



[ Previous | Help Desk | Next ]