Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

mxCopyComplex8ToPtr (Fortran) - Copy COMPLEX*8 values from Fortran array to pointer array

Fortran Syntax

mxCopyComplex8ToPtr(y, pr, pi, n)
complex*8 y(n)
mwPointer pr, pi
mwSize n

Arguments

y

COMPLEX*8 Fortran array

pr

Pointer to the real data of a single-precision MATLAB array

pi

Pointer to the imaginary data of a single-precision MATLAB array

n

Number of elements to copy

Description

mxCopyComplex8ToPtr copies n COMPLEX*8 values from the Fortran COMPLEX*8 array y into the MATLAB arrays pointed to by pr and pi. This subroutine is essential for use with Fortran compilers that do not support the %VAL construct in order to set up standard Fortran arrays for passing as arguments to the computation routine of a MEX-file.

See Also

mxCopyPtrToComplex8, mxCreateNumericArray, mxCreateNumericMatrix, mxGetData, mxGetImagData

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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