This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


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


a = sfix(WordLength)


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


sfix is a legacy function. In new code, use fixdt instead. In existing code, replace sfix(WordLength) with fixdt(1,WordLength).


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

a = sfix(16)
a = 

  NumericType with properties:

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

Introduced before R2006a