Caracteres y cadenas
Generación de código para el texto
En la generación de código, represente el texto como un arreglo de caracteres o como un arreglo de cadenas 1 por 1 (escalar de cadenas).
Clases
coder.StringType | Represent set of MATLAB strings acceptable for input specification (Desde R2022b) |
Temas
- 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.
- Generate C/C++ Strings from MATLAB Strings and Character Row Vectors
Generate C/C++ strings from null-terminated MATLAB strings and character vectors.
- Resolve Error: coder.varsize Not Supported for Strings
Troubleshoot code generation error when using
coder.varsize
with string variables.