Using Simulink    

Data Types Supported by Simulink

Simulink supports all built-in MATLAB data types except int64 and uint64. The term built-in data type refers to data types defined by MATLAB itself as opposed to data types defined by MATLAB users. Unless otherwise specified, the term data type in the Simulink documentation refers to built-in data types. The following table lists the built-in MATLAB data types supported by Simulink.

Name
Description
double
Double-precision floating point
single
Single-precision floating point
int8
Signed 8-bit integer
uint8
Unsigned 8-bit integer
int16
Signed 16-bit integer
uint16
Unsigned 16-bit integer
int32
Signed 32-bit integer
uint32
Unsigned 32-bit integer

Besides the built-in types, Simulink defines a boolean (1 or 0) type, instances of which are represented internally by uint8 values. Simulink also supports fixed-point data types.

Fixed-Point Data

Simulink allows you to create models that use fixed-point numbers to represent signals and parameter values. The use of fixed-point data in a model can significantly reduce the size and increase the speed of code generated from the model. See the documentation for the Fixed-Point Blockset for more information on creating and running fixed-point models.


  Working with Data Types Block Support for Data and Numeric Signal Types