External Interfaces/API Reference | ![]() ![]() |
Set new imaginary data for an mxArray
Fortran Syntax
subroutine mxSetPi(pm, pi) integer*4 pm, pi
Arguments
pm
Pointer to a full (nonsparse) mxArray
.
pi
mxCalloc
to allocate this dynamic memory.
Description
Use mxSetPi
to set the imaginary data of the specified mxArray
.
Most mxCreate
functions optionally allocate heap space to hold imaginary data. If you tell an mxCreate
function to allocate heap space (for example, by setting the ComplexFlag
to COMPLEX = 1
or by setting pi
to a nonzero value), then you do not ordinarily use mxSetPi
to initialize the created mxArray
's imaginary elements. Rather, you call mxSetPi
to replace the initial imaginary values with new ones.
See Also
![]() | mxSetNzmax | mxSetPr | ![]() |