Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

mxCopyPtrToCharacter (Fortran) - Copy character values from pointer array to Fortran array

Fortran Syntax

mxCopyPtrToCharacter(px, y, n)
mwPointer px
character*(*) y
mwSize n

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.

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

mxCopyCharacterToPtr, mxCreateCharArray, mxCreateString, mxCreateCharMatrixFromStrings

  


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