ufix - Create MATLAB structure describing unsigned generalized fixed-point data type

Syntax

a = ufix(TotalBits)

Description

ufix(TotalBits) returns a MATLAB structure that describes the data type of an unsigned generalized fixed-point data type with a word size given by TotalBits.

ufix is automatically called when an unsigned generalized fixed-point data type is specified in a block dialog box.

Examples

Define a 16-bit unsigned generalized fixed-point data type:

a = ufix(16)
a = 
       Class: 'FIX'
    IsSigned: 0
    MantBits: 16

See Also

fixdt, float, sfix, sfrac, sint, ufrac, uint

  


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