specifyall
Fully specify fixed-point filter System object settings
Description
specifyall(
sets all
the data type fixed-point properties of the filter System object™ to sysobj
)'Custom'
so that you can easily specify all the
fixed-point settings. If the object has a FullPrecisionOverride
property, its value is set to false
. specifyall
is
intended as a shortcut to changing all the fixed-point properties.
specifyall(
sets all fixed-point
properties of the filter System object to their default values and sets the filter to full-precision mode, if one is
available.sysobj
,false)
specifyall(
is equivalent to
sysobj
,true)specifyall(sysobj)
.
Examples
Specify All Fixed-point Settings of FIRFilter
Use specifyall
to access all the fixed-point settings of an FIR filter implemented with a direct-form structure. Using specifyall
disables all automatic filter scaling and resets the mode values.
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]
The specifyall
function sets all the data type fixed-point properties of the FIR filter to '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]
Input Arguments
sysobj
— Input filter object
filter System object
Input filter, specified as one of the following filter System objects:
Version History
Introduced in R2011aR2024b: dsp.BiquadFilter
object warns
The dsp.BiquadFilter
object issues a warning and will be removed in a
future release. Use the dsp.SOSFilter
object
instead. For more information on how to replace your existing code, see the
Compatibility Considerations section in the dsp.BiquadFilter
reference page.
R2023b: dsp.BiquadFilter
object will be removed
The dsp.BiquadFilter
object will be removed in a future release. Use
the dsp.SOSFilter
object
instead.
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.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)