| Using Simulink | ![]() |
Selecting Types for Arguments
When you click on the down arrow of the Type field for an argument in its Data properties dialog box or in its row element in the Model Explorer, a selectable list of data types appears. You can directly specify the type of the data by selecting one of the following types:
| Data Type |
Description |
double |
64-bit double-precision floating point |
single |
32-bit single-precision floating point |
int32 |
32-bit signed integer |
int16 |
16-bit signed integer |
int8 |
8-bit signed integer |
uint32 |
32-bit unsigned integer |
uint16 |
16-bit unsigned integer |
uint8 |
8-bit unsigned integer |
boolean |
Boolean (1 = true; 0 = false) |
fixpt |
Fixed-point data Specifying fixpt enables the Stored Integer and Scaling fields in the adjacent Fixed-Point field section, which are used to specify the fixed-point type.For fixed-point data, if an input or output fixed-point argument does not match its counterpart data in Simulink, a mismatch error results. |
| inherited |
Inherit type of input or output data from Simulink See Inheriting Argument Data Types for more details. |
| Inheriting Argument Data Types | Specifying Argument Types with Expressions | ![]() |
© 1994-2005 The MathWorks, Inc.