Documentation Center

  • Trial Software
  • Product Updates

Basic Approach for Adding Enumerated Data to MATLAB Function Blocks

Here is the basic workflow for using enumerated data in MATLAB Function blocks:


Define an enumerated data type that inherits from Simulink.IntEnumType.

See Define Enumerated Data Types for MATLAB Function Blocks.

Add the enumerated data to your MATLAB Function block.

See Add Inputs, Outputs, and Parameters as Enumerated Data.

Instantiate the enumerated type in your MATLAB Function block.

See Instantiate Enumerated Data in MATLAB Function Blocks.

Simulate and/or generate code.

See Enumerations.

Was this topic helpful?