Enumerated Data Definition for Code Generation

To generate efficient standalone code for enumerated data, you must define and use enumerated types differently than you do in the MATLAB® environment:

DifferenceMore 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 Generate Code for Enumerated Data from MATLAB Algorithms
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?