このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
specifyall
固定小数点フィルター System object の設定の完全な指定
説明
specifyall(
は、フィルター System object™ の固定小数点に関するすべてのデータ型プロパティを sysobj
)'Custom'
に設定します。これにより、すべての固定小数点設定を簡単に指定できるようになります。オブジェクトに FullPrecisionOverride
プロパティがある場合、その値は false
に設定されます。specifyall
は、すべての固定小数点プロパティを変更するためのショートカットとして意図されています。
specifyall(
は、フィルター System object のすべての固定小数点プロパティを既定値に設定し、利用可能な場合はフィルターを完全精度モードに設定します。sysobj
,false)
specifyall(
は sysobj
,true)specifyall(sysobj)
と等価です。
例
FIR フィルターのすべての固定小数点設定の指定
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]
入力引数
sysobj
— 入力フィルター オブジェクト。
フィルター System object
入力フィルター。次のいずれかのフィルター System object として指定します。
バージョン履歴
R2011a で導入R2023b: dsp.BiquadFilter
オブジェクトは削除予定
dsp.BiquadFilter
オブジェクトは将来のリリースで削除される予定です。代わりに dsp.SOSFilter
オブジェクトを使用してください。既存のコードを置換する方法の詳細については、dsp.BiquadFilter
のリファレンス ページにある「互換性の考慮事項」のセクションを参照してください。
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)