Real data elements in array of type DOUBLE
Pointer to the first element of the real data. Returns NULL in C (0 in Fortran) if there is no real data.
Use mxGetPr on arrays of type double only. Use mxIsDouble to validate the mxArray type. For other mxArray types, use mxGetData.
Call mxGetPr to access the real data in the mxArray that pm points to. Once you have the starting address, you can access any other element in the mxArray.
See the following examples in matlabroot/extern/examples/refbook.
For Fortran examples, see: