fdesign.notch
Notch filter specification
Syntax
Description
The fdesign.notch
function returns a
notch
filter design specification object that contains the
specifications for a filter, such as passband ripple, stopband attenuation, and filter order.
Then, use the design
function to design the filter from the
filter design specifications object.
For more control options, see Filter Design Procedure. For a complete workflow, see Design a Filter in Fdesign — Process Overview.
constructs a notch
filter specification object with the filter order set to 10, center frequency set to 0.5,
and quality factor set to 2.5.notchSpecs
= fdesign.notch
constructs a notch filter specification object with the filter order, center frequency, and
quality factor specified by notchSpecs
= fdesign.notch(n
,f0
,q
)n
,f0
, and
q
, respectively.
constructs a notch filter specification object with a particular filter order, center
frequency, and other specification options. Indicate the options you want to specify in the
expression notchSpecs
= fdesign.notch(spec
,value1,...,valueN
)spec
. After the expression, specify a value for each
option.
provides the sample rate of the signal to be filtered.notchSpecs
= fdesign.notch(___,Fs
)
provides the units for any magnitude specification given. notchSpecs
= fdesign.notch(___,magunits
)
magunits
can be one of the following: 'linear'
,
'dB'
, or 'squared'
. If this argument is omitted,
'dB'
is assumed. The magnitude specifications are always converted and
stored in decibels regardless of how they were specified. If Fs
is
provided, magunits
must follow Fs
in the input
argument list.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2011a