MATLAB Compiler Previous page   Next Page

mwArray(const char* str)

Construct character array from supplied string.

C++ syntax

Arguments

str.   NULL-terminated string

Return value

None

Description

Use this constructor to create a 1-by-n array of type mxCHAR_CLASS, with n = strlen(str), and initialize the array's data with the characters in the supplied string.


Previous page  mwArray(int num_dims, const int* dims, mxClassID mxID, mxComplexity cmplx = mxREAL) mwArray(int num_strings, const char** str) Next page

© 1994-2005 The MathWorks, Inc.