numerictype 和 fimath 的默认参数值

在MATLAB中做定点处理时所用到的两个对象numerictype 和 fimath 。他们的默认值又是多少呢?

在MATLAB命令行窗口分别输入get(numerictype) 和get(fimath) 便可以得到他们的默认值

>> get(fimath)
                       RoundMode: 'nearest'
                  RoundingMethod: 'Nearest'
                    OverflowMode: 'saturate'
                  OverflowAction: 'Saturate'
                     ProductMode: 'FullPrecision'
                         SumMode: 'FullPrecision'
               ProductWordLength: 32
                   SumWordLength: 32
            MaxProductWordLength: 65535
                MaxSumWordLength: 65535
           ProductFractionLength: 30
            ProductFixedExponent: -30
               SumFractionLength: 30
                SumFixedExponent: -30
        SumSlopeAdjustmentFactor: 1
                         SumBias: 0
    ProductSlopeAdjustmentFactor: 1
                     ProductBias: 0
                   CastBeforeSum: 1
                        SumSlope: 9.3132e-10
                    ProductSlope: 9.3132e-10
>> get(numerictype)
               Identifier: ''
                     Name: ''
                 ReadOnly: 0
                 Volatile: 0
             DataTypeMode: 'Fixed-point: binary point scaling'
                 DataType: 'Fixed'
                  Scaling: 'BinaryPoint'
           SignednessBool: 1
               Signedness: 'Signed'
               WordLength: 16
           FractionLength: 15
              BinaryPoint: 15
                    Slope: 3.0518e-05
            FixedExponent: -15
    SlopeAdjustmentFactor: 1
                     Bias: 0
         DataTypeOverride: 'Inherit'



猜你喜欢

转载自blog.csdn.net/u012573961/article/details/80382197