Main Content
Characters and Strings
Definition and use of text in code acceleration
For code acceleration, represent text as a character array or as a 1-by-1 string array (string scalar).
Topics
- Encoding of Characters in Code Generation
Differences in character encoding between MATLAB® and code generation can result in errors or different answers.
- Code Generation for Strings
Adhere to code generation restrictions for strings.
- Specify String Scalar Inputs at the Command Line
Specify string scalar inputs at the command line.
- Resolve Issue: coder.varsize Not Supported for Strings
Troubleshoot code generation error when using
coder.varisze
with string variables.