Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

numerictype Object Properties

This section describes the properties associated with numerictype objects.

Bias

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

DataType

The possible value of the DataType property are:

The default value of this property is Fixed.

DataTypeMode

Data type and scaling associated with the object. The possible values of this property are:

The default value of this property is Fixed-point: binary point scaling.

FixedExponent

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:

FractionLength

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 and the real-world value of the fi object.

Scaling

Scaling mode of the object. The possible values of this property are:

The default value of this property is BinaryPoint.

Signed

Whether the object is signed. The possible values of this property are:

The default value of this property is true.

Signedness

Whether the object is signed, unsigned, or has an unspecified sign. The possible values of this property are:

The default value of this property is Signed.

All numerictype object properties of a fi object must be specified at the time of fi object creation. If this property is set to Auto at the time of fi object creation, the property automatically defaults to Signed.

Slope

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

SlopeAdjustmentFactor

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

WordLength

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.

  


Free Early Verification Kit

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-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS