Products & Services Industries Academia Support User Community Company

Learn more about Simulink   

sint - Create MATLAB structure describing signed integer data type

Syntax

a = sint(TotalBits)

Description

sint(TotalBits) returns a MATLAB structure that describes the data type of a signed integer with a word size given by TotalBits.

sint is automatically called when a signed integer is specified in a block dialog box.

The default binary point for this data type is assumed to lie to the right of all bits.

Examples

Define a 16-bit signed integer data type:

a = sint(16)
a = 
       Class: 'INT'
    IsSigned: 1
    MantBits: 16

See Also

fixdt, float, sfix, sfrac, ufix, ufrac, uint

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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