mxCopyPtrToPtrArray (Fortran) - Pointer values from pointer array to Fortran array - MATLAB (original) (raw)
Main Content
Pointer values from pointer array to Fortran array
Fortran Syntax
#include "fintrf.h" subroutine 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 arrayy
. This subroutine is essential for copying the output ofmatGetDir
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 ofy
as the first argument tomxCopyPtrToCharacter
.
Examples
See these examples in_`matlabroot`_/extern/examples/eng_mat
:
Version History
Introduced before R2006a