Fixed-Point Blockset Previous page   Next Page
sfix

Create a MATLAB structure describing a signed generalized fixed-point data type

Syntax

Description

sfix(TotalBits) returns a MATLAB structure that describes the data type of a signed generalized fixed-point number with a word size given by TotalBits.

sfix is automatically called when a signed generalized fixed-point data type is specified in a block dialog box.

Examples

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

See Also

float, sfrac, sint, ufix, ufrac, uint


Previous page  num2fixpt sfrac 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