Main Content
mxGetPr (Fortran)
(Not recommended) Real data elements in mxDOUBLE_CLASS
array
mxGetPr
is not recommended. Use mxGetDoubles
or mxGetComplexDoubles
instead. For more information, see Version History.
Fortran Syntax
#include "fintrf.h" mwPointer mxGetPr(pm) mwPointer 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.