| Contents | Index |
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 Different | More Information |
|---|---|
| Supports integer-based enumerated types only | Enumerated Types Supported for Code Generation |
| Name of each enumerated data type must be unique | Naming Enumerated Types for Code Generation |
| Each enumerated data type must be defined in a separate file on the MATLAB path | How to Define Enumerated Data for Code Generation and How to Generate Code for Enumerated Data |
| Restricted set of operations | Operations on Enumerated Data Allowed for Code Generation |
| Restricted use in for-loops | Restrictions on Use of Enumerated Data in for-Loops |
Defining and Organizing Classes in the MATLAB Object-Oriented Programming documentation for more information about defining MATLAB classes
Enumerations and Modeling for more information about enumerated types based on Simulink.IntEnumType
![]() | Code Generation for Enumerated Data | Enumerated Types Supported for Code Generation | ![]() |

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 |