Main Content

Categorical Arrays

Definition and use of categorical arrays in code acceleration

Categorical arrays store data whose values belong to a finite set of discrete categories. With categorical arrays, you can provide efficient data storage and meaningful names for categories in MATLAB® code intended for code acceleration.


Code Generation for Categorical Arrays

Use categorical arrays in MATLAB code intended for code generation.

Define Categorical Array Inputs

Choose how you want to specify categorical array inputs.

Categorical Array Limitations for Code Generation

Adhere to code generation restrictions for categorical arrays.