Documentation Center

  • Trials
  • Product Updates

Contents

ufix

Create Simulink.NumericType object describing unsigned fixed-point data type

Syntax

a = ufix(WordLength)

Description

ufix(WordLength) returns a Simulink.NumericType object that describes a signed fixed-point data type with the specified word length and unspecified scaling.

    Note:   ufix is a legacy function. In new code, use fixdt instead. In existing code, replace ufix(WordLength) with fixdt(0,WordLength).

Examples

Define a 16-bit unsigned fixed-point data type.

a = ufix(16)
a = 

  NumericType with properties:

    DataTypeMode: 'Fixed-point: unspecified scaling'
      Signedness: 'Unsigned'
      WordLength: 16
         IsAlias: 0
       DataScope: 'Auto'
      HeaderFile: ''
     Description: ''

See Also

| | | | | | |

Was this topic helpful?