External Interfaces Reference |
Get real data elements in mxArray
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 | mxGetScalar |
© 1994-2005 The MathWorks, Inc.