Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

specifyall

固定小数点フィルター System object の設定の完全な指定

説明

specifyall(sysobj) は、フィルター System object™ の固定小数点に関するすべてのデータ型プロパティを 'Custom' に設定します。これにより、すべての固定小数点設定を簡単に指定できるようになります。オブジェクトに FullPrecisionOverride プロパティがある場合、その値は false に設定されます。specifyall は、すべての固定小数点プロパティを変更するためのショートカットとして意図されています。

specifyall(sysobj,false) は、フィルター System object のすべての固定小数点プロパティを既定値に設定し、利用可能な場合はフィルターを完全精度モードに設定します。

specifyall(sysobj,true)specifyall(sysobj) と等価です。

すべて折りたたむ

specifyall を使用して、直接型構造で実装された FIR フィルターのすべての固定小数点設定にアクセスします。specifyall を使用すると、自動フィルター スケーリングはすべて無効になり、モードの値がリセットされます。

b = fircband(12,[0 0.4 0.5 1],[1 1 0 0],[1 0.2],{'w' 'c'});
firFilter = dsp.FIRFilter('Numerator',b);
get(firFilter)
ans = struct with fields:
                               Numerator: [0.0164 0.1031 -0.0632 -0.0907 0.0467 0.3139 0.4526 0.3139 0.0467 -0.0907 -0.0632 0.1031 0.0164]
                  ReflectionCoefficients: [0.5000 0.5000]
                       InitialConditions: 0
                         NumeratorSource: 'Property'
            ReflectionCoefficientsSource: 'Property'
                               Structure: 'Direct form'
                   FullPrecisionOverride: 1
                          RoundingMethod: 'Floor'
                          OverflowAction: 'Wrap'
                    CoefficientsDataType: 'Same word length as input'
          ReflectionCoefficientsDataType: 'Same word length as input'
              CustomCoefficientsDataType: [1x1 embedded.numerictype]
    CustomReflectionCoefficientsDataType: [1x1 embedded.numerictype]
                         ProductDataType: 'Full precision'
                   CustomProductDataType: [1x1 embedded.numerictype]
                     AccumulatorDataType: 'Full precision'
               CustomAccumulatorDataType: [1x1 embedded.numerictype]
                           StateDataType: 'Same as accumulator'
                     CustomStateDataType: [1x1 embedded.numerictype]
                          OutputDataType: 'Same as accumulator'
                    CustomOutputDataType: [1x1 embedded.numerictype]

関数 specifyall は、FIR フィルターの固定小数点に関するすべてのデータ型プロパティを 'Custom' に設定します。

specifyall(firFilter)
get(firFilter)
ans = struct with fields:
                               Numerator: [0.0164 0.1031 -0.0632 -0.0907 0.0467 0.3139 0.4526 0.3139 0.0467 -0.0907 -0.0632 0.1031 0.0164]
                  ReflectionCoefficients: [0.5000 0.5000]
                       InitialConditions: 0
                         NumeratorSource: 'Property'
            ReflectionCoefficientsSource: 'Property'
                               Structure: 'Direct form'
                   FullPrecisionOverride: 0
                          RoundingMethod: 'Floor'
                          OverflowAction: 'Wrap'
                    CoefficientsDataType: 'Custom'
          ReflectionCoefficientsDataType: 'Custom'
              CustomCoefficientsDataType: [1x1 embedded.numerictype]
    CustomReflectionCoefficientsDataType: [1x1 embedded.numerictype]
                         ProductDataType: 'Custom'
                   CustomProductDataType: [1x1 embedded.numerictype]
                     AccumulatorDataType: 'Custom'
               CustomAccumulatorDataType: [1x1 embedded.numerictype]
                           StateDataType: 'Custom'
                     CustomStateDataType: [1x1 embedded.numerictype]
                          OutputDataType: 'Custom'
                    CustomOutputDataType: [1x1 embedded.numerictype]

バージョン履歴

R2011a で導入

すべて展開する