DSP Blockset Previous page   Next Page

Data Type Support

All DSP Blockset blocks support single- and double-precision floating-point data types during both simulation and Real-Time Workshop C code generation. Many blocks also support fixed-point and Boolean data types. The following table lists all data types supported by the DSP Blockset and which block to use when converting between data types. To see which data types a particular block supports, check the "Supported Data Types" section of the block's reference page.

Supported Data Types 
Data Types Supported by DSP Blockset Blocks
Commands and Blocks for Converting Data Types
Comments
Double-precision floating point
  • double
  • Data Type Conversion block

Simulink built-in data type supported by all DSP Blockset blocks
Single-precision floating point
  • single
  • Data Type Conversion block

Simulink built-in data type supported by all DSP Blockset blocks
Boolean
  • boolean
  • Data Type Conversion block

Simulink built-in data type. To learn more, see Boolean Support.
Integer (8-,16-, or 32-bits)
  • int8, int16, int32
  • Data Type Conversion block

Simulink built-in data type
Unsigned integer (8-,16-, or 32-bits)
  • uint8, uint16, uint32
  • Data Type Conversion block

Simulink built-in data type
Fixed-point data types

To learn more about fixed-point data types in the DSP Blockset, see Fixed-Point Support.
Custom data types
See Correctly Defining Custom Data Types to learn about custom data types.

For more information, see Data Type Support.


Previous page  Matrix Support Adaptive and Multirate Filtering 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