| Contents | Index |
| On this page… |
|---|
Valid Values for numerictype Structure Properties |
The numerictype object contains all the data type and scaling attributes of a fixed-point object. The numerictype object behaves like any MATLAB structure, except that it only lets you set valid values for defined fields. The following table shows the possible settings of each field of the structure.
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. |
| DataTypeMode | DataType | Scaling | Signedness | Word- Length | Fraction- Length | Slope | Bias |
|---|---|---|---|---|---|---|---|
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 structure 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.
The numerictype StoredIntegerValue and RealWorldValue properties are related according to
![]()
which is equivalent to

If any of these properties is updated, the others are modified accordingly.
![]() | numerictype Object Properties | Using numerictype Objects to Share Data Type and Scaling Settings of fi objects | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |