External Interfaces/API Reference    
mxCopyPtrToCharacter

Copy character values from a pointer array to a Fortran array

Fortran Syntax

Arguments

px
   Pointer to character or name array.

y
   character Fortran array.

n
   Number of elements to copy.

Description

mxCopyPtrToCharacter copies n character values from the MATLAB array pointed to by px into the Fortran character array y. This subroutine is essential for copying character data from MATLAB pointer arrays into ordinary Fortran character arrays.

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

mxCopyCharacterToPtr, mxCreateCharArray, mxCreateString, mxCreateCharMatrixFromStrings


  mxCopyInteger4ToPtr mxCopyPtrToComplex8