Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mxCopyPtrToPtrArray (Fortran) - Copy pointer values from pointer array to Fortran array

Fortran Syntax

mxCopyPtrToPtrArray(px, y, n)
mwPointer px
mwPointer y(n)
mwSize n

Arguments

px

Pointer to pointer array

y

Fortran array of mwPointer values

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.

Examples

See matdemo2.F in the matlabroot/extern/examples/eng_mat folder for sample programs that illustrate how to use the MAT-file routines in a Fortran program.

See Also

matGetDir, mxCopyPtrToCharacter

  


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