mxGetImagData (C and Fortran) - Get pointer to imaginary data of mxArray

C Syntax

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

Fortran Syntax

mwPointer mxGetImagData(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

The address of the first element of the imaginary data, on success. Returns NULL in C (0 in Fortran) if there is no imaginary data or if there is an error.

Description

This function is similar to mxGetPi, except that in C it returns a void *.

C Examples

See mxisfinite.c in the mx subdirectory of the examples directory.

See Also

mxGetData, mxGetPi

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS