|On this page…|
The numerictype object contains all the data type and scaling attributes of a fixed-point object. The numerictype object behaves like any MATLAB® object, except that it only lets you set valid values for defined fields. The following table shows the possible settings of each field of the object.
Note When you create a fi object, any unspecified field of the numerictype object reverts to its default value. Thus, if the DataTypeMode is set to unspecified scaling, it defaults to binary point scaling when the fi object is created. If the Signedness property of the numerictype object is set to Auto, it defaults to Signed when the fi object is created.
Fixed-point data types
Scaled double data types
Built-in data types
You cannot change the numerictype properties of a fi object after fi object creation.
The Slope field of the numerictype object is related to the SlopeAdjustmentFactor and FixedExponent properties by
The FixedExponent and FractionLength properties are related by
If you set the SlopeAdjustmentFactor, FixedExponent, or FractionLength property, the Slope field is modified.
In binary point scaling the numerictype StoredIntegerValue and RealWorldValue properties are related according to
In [Slope Bias] scaling the RealWorldValue can be represented by
which is equivalent to
If any of these properties are updated, the others are modified accordingly.
For more detail on these properties see numerictype Object Properties.
For more information on scaling see Data Types and Scaling