Skip to Main Content Skip to Search
Product Documentation

How Working with Enumerated Data Is Different 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 pathHow to Define Enumerated Data for Code Generation and How to Generate Code for Enumerated Data
Restricted set of operationsOperations on Enumerated Data Allowed for Code Generation
Restricted use in for-loopsRestrictions on Use of Enumerated Data in for-Loops

See Also

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS