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 for Code Generation
Name of each enumerated data type must be uniqueNaming Enumerated Types for Code Generation
Each enumerated data type must be defined in a separate file on the MATLAB pathDefine Enumerated Data for Code Generation and How to Generate Code for Enumerated Data
Restricted set of operationsOperations on Enumerated Data for Code Generation
Restricted use in for-loopsRestrictions on Use of Enumerated Data in for-Loops

Was this topic helpful?