External Interfaces/API Reference    
mxGetPr

Get an mxArray's real data elements

Fortran Syntax

Arguments

pm
   Pointer to an mxArray.

Returns

The address of the first element of the real data. Returns 0 if there is no real data.

Description

Use mxGetPr to determine the starting address of the real data in the mxArray that pm points to.

See the description for mxGetData, which is an equivalent function to mxGetPr.

Example

See matdemo1.f and fengdemo.f in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use this routine in a Fortran program.

See Also

mxGetPi, mxSetPr, mxSetPi, mxGetData


  mxGetPi mxGetScalar