Contenido principal

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Datos de tamaño variable

Definición y diferencias para generar código

Las variables de los bloques MATLAB Function y MATLAB System se pueden especificar con tamaño variable, que son datos cuyo tamaño no se conoce en tiempo de compilación o cambia en tiempo de ejecución.

Bloques

MATLAB FunctionInclude MATLAB code in Simulink models
MATLAB SystemInclude System object in model

Funciones

coder.areUnboundedVariableSizedArraysSupportedCheck if current configuration settings allow unbounded variable-size arrays (Desde R2024a)
coder.varsizeResolve size incompatibility errors and declare upper bounds

Temas

Solución de problemas

Resolve Error: Fixed Size on the Left Side but Variable Size on the Right

Troubleshoot errors when assigning variable-size arrays to fixed-size arrays.

Resolve Error: coder.varsize Not Supported for Strings

Troubleshoot code generation error when using coder.varsize with string variables.

Ejemplos destacados