mxGetPr (C)
(Not recommended) Real data elements in mxDOUBLE_CLASS
array
mxGetPr
is not recommended. Use mxGetDoubles
or mxGetComplexDoubles
instead. For more information, see Version History.
C Syntax
#include "matrix.h" mxDouble *mxGetPr(const mxArray *pm);
Description
Use mxGetPr
on real arrays of type
mxDOUBLE_CLASS
only. For other numeric mxArray
types, use Typed Data Access in C MEX Files functions. For complex arrays, see the description for output
argument dt.
Call mxIsDouble
to validate the
mxArray
type. Call mxIsComplex
to determine whether the
data is real.