1-N array initialized to specified string
#include "fintrf.h" mwPointer mxCreateString(str) character*(*) str
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
.
See these examples in
:matlabroot
/extern/examples/refbook
See these examples in
:matlabroot
/extern/examples/eng_mat