This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Create Simulink.NumericType object describing unsigned integer data type


a = uint(WordLength)


uint(WordLength) returns a Simulink.NumericType object that describes the data type of an unsigned integer with a word size given by WordLength.

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


Define a 16-bit unsigned integer.

a = uint(16)
a = 

  NumericType with properties:

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

Introduced before R2006a

Was this topic helpful?