| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
mxCopyReal8ToPtr(y, px, n) real*8 y(n) mwPointer px mwSize n
REAL*8 Fortran array
Pointer to the real or imaginary data of a double-precision MATLAB array
Number of elements to copy
mxCopyReal8ToPtr copies n REAL*8 values from the Fortran REAL*8 array y into the MATLAB array pointed to by px, either a pr or pi array. 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 matdemo1.F and fengdemo.F in the matlabroot/extern/examples/eng_mat folder for a sample program that illustrates how to use this routine in a Fortran program.
mxCopyPtrToReal8, mxCreateNumericArray, mxCreateNumericMatrix, mxGetData, mxGetImagData
![]() | mxCopyReal4ToPtr (Fortran) | mxCreateCellArray (C and Fortran) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |