| MATLAB Application Program Interface | Search  Help Desk |
| mxSetPr | See Also |
Set new real data for an mxArray
Fortran Syntax
subroutine mxSetPr(pm, pr) integer*4 pm, pr
Arguments
pmmxArray.
pr
mxCalloc to allocate this dynamic memory.
Description
UsemxSetPr 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 call mxSetPr to replace the initial real values with new ones.
See Also
mxGetPr, mxGetPi, mxSetPi