Caratteri e stringhe
Definire e utilizzare il testo nell'accelerazione del codice
Per l'accelerazione del codice, rappresentare il testo come un array di caratteri o come un array di stringhe 1x1 (scalare di stringhe).
Argomenti
- 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 Error: coder.varsize Not Supported for Strings
Troubleshoot code generation error when using
coder.varsize
with string variables.