External Interfaces/API Reference    
mxGetPr

Get an mxArray's real data elements

C Syntax

Arguments

array_ptr
   Pointer to an mxArray.

Returns

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

Description

Call mxGetPr to determine the starting address of the real data in the mxArray that array_ptr points to. Once you have the starting address, you can access any other element in the mxArray.

Examples

See convec.c, doubleelement.c, findnz.c, fulltosparse.c, sincall.c, timestwo.c, timestwoalt.c, and xtimesy.c in the refbook subdirectory of the examples directory.

See Also

mxGetPi, mxSetPi, mxSetPr


  mxGetPi mxGetScalar