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.
Note
The default binary point is not included in this data type description.
Instead, the scaling must be explicitly defined in the 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
 | tunablevars2parameterobjects | | ufrac |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit