Main Content
mxCreateString (Fortran)
1-D array initialized to specified string
Fortran Syntax
#include "fintrf.h" mwPointer mxCreateString(str) character*(*) str
Description
Use mxCreateString
to create an mxArray
initialized to str
. Many MATLAB® functions, such as strcmp
and upper
,
require string array inputs.
mxCreateString
supports both multibyte and single-byte encoded
characters. On Windows® and Linux® platforms, the user locale setting specifies the default encoding.
Call mxDestroyArray
when you finish using the
mxArray
.
Input Arguments
Output Arguments
Examples
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/eng_mat
Version History
Introduced before R2006a