Code Generation for Strings - MATLAB & Simulink (original) (raw)

Main Content

Code generation supports 1-by-1 MATLAB® string arrays. Code generation does not support string arrays that have more than one element.

A 1-by-1 string array, called a string scalar, contains one piece of text, represented as a 1-by-n character vector. An example of a string scalar is "Hello, world". For more information about strings, see Text in String and Character Arrays.

Limitations

For string scalars, code generation does not support:

For code generation, limitations that apply to classes apply to strings. See MATLAB Classes Definition for Code Generation.

Differences Between Generated Code and MATLAB Code