
3 Design a Filter with fdesign and filterbuilder
3-6
>> BandPassFiltSysObj = design(BandPassSpecObj,...
'equiripple','SystemObject',true)
System: dsp.FIRFilter
Properties:
Structure: 'Direct form'
NumeratorSource: 'Property'
Numerator: [1x44 double]
InitialConditions: 0
FrameBasedProcessing: true
Show fixed-point properties
Available design methods and design options for filter System objects are not
necessarily the same as those for filter objects.
Note: If you do not specify a design method, a default method will be used. For
example, you can execute the command
>> BandPassFilt = design(BandPassSpecObj)
BandPassFilt =
FilterStructure: 'Direct-Form FIR'
Arithmetic: 'double'
Numerator: [1x44 double]
PersistentMemory: false
and a design method will be selected automatically.
To check your work, you can plot the filter magnitude response using the Filter
Visualization tool. Verify that all the design parameters are met:
>> fvtool(BandPassFilt) %plot the filter magnitude response
If you have the DSP System Toolbox installed, the Filter Visualization tool produces
the following figure with the dashed red lines indicating the transition bands and
unity gain (0 in dB) over the passband.
Kommentare zu diesen Handbüchern