Simulink.IntEnumType Class
Namespace: Simulink
Abstract class for defining enumerations
Description
The Simulink.IntEnumType class is an abstract class for defining an
enumerated data type. An enumerated data type defines a set of enumerated values. Each
enumerated value consists of an enumerated name and an underlying integer which the software
uses internally and in generated code.
To create an enumerated data type that you can use in Simulink® models, define an enumeration class as a subclass of
Simulink.IntEnumType using a classdef block in a
MATLAB® file.
Alternatively, you define an enumerated data type by using one of these methods:
Use the function
Simulink.defineIntEnumType. You do not need a class definition file to define the type.Use the function
Simulink.importExternalCTypesto create a Simulink representation of an enumerated data type (enum) that your external C code defines.
Methods
Examples
Version History
Introduced before R2006a