Contenido principal

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

mxGetComplexDoubles (C)

Complex data elements in mxDOUBLE_CLASS array

C Syntax

#include "matrix.h"
mxComplexDouble *mxGetComplexDoubles(const mxArray *pa);

Argumentos de entrada

expandir todo

Pointer to an mxDOUBLE_CLASS array.

Output Arguments

expandir todo

Pointer to the first mxComplexDouble element of the data. If pa is NULL, then the function returns NULL.

If mxArray is not an mxDOUBLE_CLASS array:

  • MEX file — Function terminates the MEX file and returns control to the MATLAB® prompt.

  • Standalone (non-MEX file) application — Function returns NULL. A NULL return value indicates that pa is either empty or not an mxDOUBLE_CLASS array.

Examples

To open an example, type:

edit([fullfile(matlabroot,"extern","examples","mex","filename")]);

where filename is:

API Version

This function is available in the interleaved complex API. To build myMexFile.c using this function, type:

mex -R2018a myMexFile.c

Historial de versiones

Introducido en R2018a