specifyall
固定小数点フィルター System object の設定の完全な指定
説明
specifyall(
は、フィルター System object™ の固定小数点に関するすべてのデータ型プロパティを sysobj
)'Custom'
に設定します。これにより、すべての固定小数点設定を簡単に指定できるようになります。オブジェクトに FullPrecisionOverride
プロパティがある場合、その値は false
に設定されます。specifyall
は、すべての固定小数点プロパティを変更するためのショートカットとして意図されています。
specifyall(
は、フィルター System object のすべての固定小数点プロパティを既定値に設定し、利用可能な場合はフィルターを完全精度モードに設定します。sysobj
,false)
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: [1×1 embedded.numerictype]
CustomReflectionCoefficientsDataType: [1×1 embedded.numerictype]
ProductDataType: 'Full precision'
CustomProductDataType: [1×1 embedded.numerictype]
AccumulatorDataType: 'Full precision'
CustomAccumulatorDataType: [1×1 embedded.numerictype]
StateDataType: 'Same as accumulator'
CustomStateDataType: [1×1 embedded.numerictype]
OutputDataType: 'Same as accumulator'
CustomOutputDataType: [1×1 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: [1×1 embedded.numerictype]
CustomReflectionCoefficientsDataType: [1×1 embedded.numerictype]
ProductDataType: 'Custom'
CustomProductDataType: [1×1 embedded.numerictype]
AccumulatorDataType: 'Custom'
CustomAccumulatorDataType: [1×1 embedded.numerictype]
StateDataType: 'Custom'
CustomStateDataType: [1×1 embedded.numerictype]
OutputDataType: 'Custom'
CustomOutputDataType: [1×1 embedded.numerictype]
入力引数
入力フィルター。次のいずれかのフィルター System object として指定します。
バージョン履歴
R2011a で導入dsp.BiquadFilter
オブジェクトは警告を発行します。また、将来のリリースでは削除される予定です。代わりに dsp.SOSFilter
オブジェクトを使用してください。既存のコードを置換する方法の詳細については、dsp.BiquadFilter
のリファレンス ページにある互換性の考慮事項のセクションを参照してください。
dsp.BiquadFilter
オブジェクトは将来のリリースで削除される予定です。代わりに dsp.SOSFilter
オブジェクトを使用してください。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)