Documentation Center

  • Trial Software
  • Product Updates

Define Enumerated Data Types for MATLAB Function Blocks

You define enumerated data types for MATLAB Function blocks in the same way as for other Simulink® blocks:

  1. Create a class definition file.

  2. Define enumerated values in an enumeration section.

  3. Optionally override default methods in a methods section.

  4. Save the MATLAB® file on the MATLAB path.

Was this topic helpful?