MATLAB Application Program Interface Reference | Help Desk |
mxSetPr
Set new real data for anmxArray
subroutine mxSetPr(pm, pr) integer*4 pm, prpm
Pointer to a full (nonsparse) mxArray
.
Pointer to the first element of an array. Each element in the array contains the real component of a value. The array must be in dynamic memory; call mxCalloc
to allocate this dynamic memory.
mxSetPr
to set the real data of the specified mxArray
.
All mxCreate
calls allocate heap space to hold real data. Therefore, you do not ordinarily use mxSetPr
to initialize the real elements of a freshly created mxArray
. Rather, you typically call mxSetPr
to replace the initial real values with new ones.
mxGetPr
, mxGetPi
, mxSetPi