fimath - Construct fimath object

Syntax

F = fimath
F = fimath(...'PropertyName',PropertyValue...)

Description

You can use the fimath constructor function in the following ways:

The properties of the fimath object are listed below. These properties are described in detail in fimath Object Properties in the Properties Reference.

Examples

Example 1

Type

F = fimath

to create a default fimath object.

F = fimath
 
F =
 
             RoundMode: nearest
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128
         CastBeforeSum: true

Example 2

You can set properties of fimath objects at the time of object creation by including properties after the arguments of the fimath constructor function. For example, to set the overflow mode to saturate and the rounding mode to convergent,

F = fimath('OverflowMode','saturate',...
           'RoundMode','convergent')
 
F =
 
             RoundMode: convergent
          OverflowMode: saturate
           ProductMode: FullPrecision
  MaxProductWordLength: 128
               SumMode: FullPrecision
      MaxSumWordLength: 128
         CastBeforeSum: true

See Also

fi, fipref, numerictype, quantizer

  


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