External Interfaces Reference Previous page   Next Page
mxCopyPtrToPtrArray

Copy pointer values from pointer array to Fortran array

Fortran Syntax

Arguments

px
   Pointer to pointer array.

y
   INTEGER*4 Fortran array.

n
   Number of pointers to copy.

Description

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.

Example

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.

See Also

matGetDir, mxCopyPtrToCharacter


Previous page  mxCopyPtrToInteger4 mxCopyPtrToReal4 Next page

© 1994-2005 The MathWorks, Inc.