Using Simulink Previous page   Next Page

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. Some Simulink blocks also support fixed-point data types. See Simulink Blocks in the online Simulink documentation for information on the data types supported by specific blocks for parameter and input and output values. If the documentation for a block does not specify a data type, the block inputs or outputs only data of type double.

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.


Previous page  Working with Data Types Block Support for Data and Numeric Signal Types Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS