This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Typed Data Access

The functions mxGetPr and mxGetPi in the C and Fortran Matrix APIs read data elements in mxArrays of type mxDOUBLE_CLASS. However, these functions do not verify the array type of the input argument. For type-safe data access, use the C mxGetDoubles and mxGetComplexDoubles functions or the Fortran mxGetDoubles and mxGetComplexDoubles functions. There are typed data access functions for each numeric mxArray type, as shown in this table.

The typed data access functions are part of the interleaved complex C and Fortran Matrix APIs; use the mex -R2018a option to build the MEX functions.