| MATLAB® | ![]() |
mxCopyPtrToPtrArray(px, y, n) mwPointer px mwPointer y(n) mwSize n
Pointer to pointer array
Fortran array of mwPointer values
Number of pointers to copy
mxCopyPtrToPtrArray copies n pointers from the MATLAB array pointed to by px into the Fortran array y. This subroutine is essential for copying the output of matGetDir into an array of pointers. After calling this function, each element of y contains a pointer to a string. You can convert these strings to Fortran character arrays by passing each element of y as the first argument to mxCopyPtrToCharacter.
See matdemo2.F in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use this routine in a Fortran program.
matGetDir, mxCopyPtrToCharacter
![]() | mxCopyPtrToInteger4 (Fortran) | mxCopyPtrToReal4 (Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |