Documentation Center

  • Trial Software
  • Product Updates

Enumerated Data Definition for Code Generation

To generate efficient standalone code for enumerated data, you must define and use enumerated types differently than you normally would when running your code in the MATLAB® environment:

What's DifferentMore Information
Supports integer-based enumerated types onlyEnumerated Types Supported in MATLAB Function Blocks
Each enumerated data type must be defined in a separate file on the MATLAB pathDefine Enumerated Data Types for MATLAB Function Blocks
Restricted set of operationsOperations on Enumerated Data
Restricted use in for-loopsRestrictions on Use of Enumerated Data in for-Loops

Was this topic helpful?