| Fixed-Point Toolbox™ | ![]() |
This section describes the properties associated with numerictype objects.
The bias is part of the numerical representation used to interpret a fixed-point number. Along with the slope, the bias forms the scaling of the number. Fixed-point numbers can be represented as
![]()
where the slope can be expressed as
![]()
The possible value of the DataType property are:
boolean — Built-in MATLAB boolean data type
double — Built-in MATLAB double data type
Fixed — Fixed-point or integer data type
ScaledDouble — Scaled double data type
single — Built-in MATLAB single data type
The default value of this property is Fixed.
Data type and scaling associated with the object. The possible values of this property are:
boolean — Built-in boolean
double — Built-in double
Fixed-point: binary point scaling — Fixed-point data type and scaling defined by the word length and fraction length
Fixed-point: slope and bias scaling — Fixed-point data type and scaling defined by the slope and bias
Fixed-point: unspecified scaling — Fixed-point data type with unspecified scaling
Scaled double: binary point scaling — Double data type with fixed-point word length and fraction length information retained
Scaled double: slope and bias scaling — Double data type with fixed-point slope and bias information retained
Scaled double: unspecified scaling — Double data type with unspecified fixed-point scaling
single — Built-in single
The default value of this property is Fixed-point: binary point scaling.
Fixed-point exponent associated with the object. The exponent is part of the numerical representation used to express a fixed-point number. Fixed-point numbers can be represented as
![]()
where the slope can be expressed as
![]()
The exponent of a fixed-point number is equal to the negative of the fraction length:
![]()
Fraction length of the stored integer value of the object, in bits. The fraction length can be any integer value.
This property automatically defaults to the best precision possible based on the value of the word length.
Scaling mode of the object. The possible values of this property are:
BinaryPoint — Scaling for the fi object is defined by the fraction length.
SlopeBias — Scaling for the fi object is defined by the slope and bias.
Unspecified — A temporary setting that is only allowed at fi object creation, to allow for the automatic assignment of a binary point best-precision scaling.
The default value of this property is BinaryPoint.
Whether the object is signed. The possible values of this property are:
1 — signed
0 — unsigned
true — signed
false — unsigned
The default value of this property is true.
Slope associated with the object. The slope is part of the numerical representation used to express a fixed-point number. Along with the bias, the slope forms the scaling of a fixed-point number. Fixed-point numbers can be represented as
![]()
where the slope can be expressed as
![]()
Slope adjustment associated with the object. The slope adjustment is equivalent to the fractional slope of a fixed-point number. The fractional slope is part of the numerical representation used to express a fixed-point number. Fixed-point numbers can be represented as
![]()
where the slope can be expressed as
![]()
Word length of the stored integer value of the object, in bits. The word length can be any positive integer value.
The default value of this property is 16.
![]() | fipref Object Properties | quantizer Object Properties | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |