fdesign.comb
IIR comb filter specification object
Syntax
d=fdesign.comb
d=fdesign.comb(combtype)
d=fdesign(combtype,specstring
)
d=fdesign(combtype,specstring
,specvalue1,specvalue2,...)
d=fdesign.comb(...,Fs)
Description
fdesign.comb
specifies a peaking or notching
comb filter. Comb filters amplify or attenuate a set of harmonically
related frequencies.
d=fdesign.comb
creates
a notching comb filter specification object and applies default values
for the filter order (N=10
) and quality factor
(Q=16
).
d=fdesign.comb(combtype)
creates
a comb filter specification object of the specified type and applies
default values for the filter order and quality factor. The valid
entries for combtype
are shown in the following
table. The entries are not case-sensitive.
Argument | Description |
---|---|
notch | creates a comb filter that attenuates a set of harmonically related frequencies. |
peak | creates a comb filter that amplifies a set of harmonically related frequencies. |
d=fdesign(combtype,
creates
a comb filter specification object of type specstring
)combtype
and
sets its Specification
property to specstring
with
default values. The entries in specstring
determine
the number of peaks or notches in the comb filter as well as their
bandwidth and slope. Valid entries for specstring
are
shown below. The entries are not case-sensitive.
'N,Q'
(default)'
'N,BW'
'L,BW,GWB,Nsh'
The following table describes the arguments in specstring
.
Argument | Description |
---|---|
BW | Bandwidth of the notch or peak. By default the bandwidth is
calculated at the point –3 dB down from the center frequency
of the peak or notch. For example, setting BW=0.01 specifies
that the –3 dB point will be +/- 0.005 (in normalized frequency)
from the center of the notch or peak. |
GWB | Gain at which the bandwidth is measured. This allows the user to specify the bandwidth of the notch or peak at a gain different from the –3 dB default. |
L | Upsampling factor for a shelving filter of order Nsh . L determines
the number of peaks or notches, which are equally spaced over the
normalized frequency interval [-1,1]. |
N | Filter order. Specifies a filter with N+1 numerator and denominator
coefficients. The filter will have N peaks or
notches equally spaced over the interval [–1,1]. |
Nsh | Shelving filter order. Nsh represents a
positive integer that determines the sharpness of the peaks or notches.
The greater the value of the shelving filter order, the steeper the
slope of the peak or notch. This results in a filter of order L*Nsh . |
Q | Peak or notch quality factor. Q represents
the ratio of the lowest center frequency peak or notch (not including
DC) to the bandwidth calculated at the –3 dB point. |
d=fdesign(combtype,
creates
an IIR comb filter specification object of type specstring
,specvalue1,specvalue2,...)combtype
and
sets its Specification
property to the values
in specvalue1,specvalue2,...
d=fdesign.comb(...,Fs)
creates
an IIR comb filter specification object using the sampling frequency, Fs
,
of the signal to be filtered. The function assumes that Fs
is
in Hertz and must be specified as a scalar trailing all other provided
values.
Examples
Version History
Introduced in R2011a