Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

fi Object Properties

The properties associated with fi objects are described in the following sections in alphabetical order.

You can set these properties when you create a fi object. For example, to set the stored integer value of a fi object:

x = fi(0,true,16,15,'int',4);

bin

Stored integer value of a fi object in binary.

data

Numerical real-world value of a fi object.

dec

Stored integer value of a fi object in decimal.

double

Real-world value of a fi object stored as a MATLAB® double.

fimath

fimath properties associated with a fi object. fimath properties determine the rules for performing fixed-point arithmetic operations on fi objects. fi objects get their fimath properties from a local fimath object or from default values. The factory-default fimath values have the following settings:

        RoundingMethod: Nearest
        OverflowAction: Saturate
           ProductMode: FullPrecision
               SumMode: FullPrecision

To learn more about fimath objects, refer to fimath Object Construction. For more information about each of the fimath object properties, refer to fimath Object Properties.

hex

Stored integer value of a fi object in hexadecimal.

int

Stored integer value of a fi object, stored in a built-in MATLAB integer data type.

NumericType

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. For a table of the possible settings of each field of the structure, see Valid Values for numerictype Object Properties in the Fixed-Point Designer™ User's Guide.

    Note   You cannot change the numerictype properties of a fi object after fi object creation.

oct

Stored integer value of a fi object in octal.

Value

Full-precision real world value of a fi object, stored as a character vector.

Was this topic helpful?