This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mxGetImagData (C and Fortran)

Pointer to imaginary data elements in array

C Syntax

#include "matrix.h"
void *mxGetImagData(const mxArray *pm);

Fortran Syntax

#include "fintrf.h"
mwPointer mxGetImagData(pm)
mwPointer pm



Pointer to an mxArray


Pointer to the first element of the imaginary data. Returns NULL in C (0 in Fortran) if there is no imaginary data or if there is an error.


This function is like mxGetPi, except that in C it returns a void *. For more information, see the description for the mxGetData function.


See the following examples in matlabroot/extern/examples/mex.

See the following examples in matlabroot/extern/examples/mx.

Introduced before R2006a

Was this topic helpful?