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.

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.

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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS