mxCopyPtrToComplex16 (Fortran)
COMPLEX*16 values from pointer array to Fortran
array
The function signature for mxCopyPtrToComplex16 is different in
the Interleaved
Complex API.
Fortran Syntax
Interleaved complex API
#include "fintrf.h" integer*4 mxCopyPtrToComplex16(pd, y, n) mwPointer pd complex*16 y(n) mwSize n
Separate complex API
#include "fintrf.h" subroutine mxCopyPtrToComplex16(pr, pi, y, n) mwPointer pr, pi complex*16 y(n) mwSize n
Input Arguments
pdPointer to a complex double-precision MATLAB® array
prPointer to the real data of a double-precision MATLAB array
piPointer to the imaginary data of a double-precision MATLAB array
yCOMPLEX*16Fortran arraynNumber of elements to copy
Output Arguments
statusFunction status, returned as
integer*4when using the interleaved complex API.
Description
mxCopyPtrToComplex16 copies n
COMPLEX*16 values from the specified MATLAB arrays into the Fortran COMPLEX*16 array
y. The MATLAB arrays are pointed to by:
pdwhen using the interleaved complex API, built with the-R2018aoption.prandpiwhen using the separate complex API, built with the-R2017boption.
Sets up standard Fortran arrays for passing as arguments to
or from the computation routine of a MEX-file. Use this subroutine
with Fortran compilers that do not support the %VAL construct.
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","eng_mat","filename")]);
where filename is:
Version History
Introduced before R2006a