Data Types - MATLAB & Simulink (original) (raw)

Main Content

Assign specific data types to signals and block parameters; define enumerations

In models, data types determine the interactions between signals and block parameters. Numeric data types determine how a computer stores signals and parameters in memory and how a computer performs math operations. Other Simulink® data types determine the structure or allowed values of signals and parameters.

To simulate the mathematical behavior of computer hardware, or to generate efficient code from a model, you can control the numeric data types of signals and parameters. You can specify floating-point, integer, fixed-point, and other numeric types. See Data Types Supported by Simulink.

Enumerated data types allow signals and parameters to use only a set of values that you specify. You can improve model readability by providing a meaningful name for each enumerated value. To use enumerations in Simulink, see Use Enumerated Data in Simulink Models.

You can use bus types to group multiple signals or parameters together, which can improve model readability and ease model maintenance. See Specify Bus Properties with Bus Objects.

You can use string types to easily use strings in models.

Blocks

Functions

Classes

Model Settings

Topics