Q = getQualityFactor(npFilter)
returns the quality factor (Q factor) of the notch peak filter. The Q factor is defined as
the center frequency divided by the bandwidth.
Create a dsp.NotchPeakFilter object in the default configuration, where the Specification property is set to 'Bandwidth and center frequency'.
np = dsp.NotchPeakFilter
np =
dsp.NotchPeakFilter with properties:
Specification: 'Bandwidth and center frequency'
Bandwidth: 2205
CenterFrequency: 11025
SampleRate: 44100
Determine the quality factor of the filter using the getQualityFactor function. The quality factor is given by the ratio of the center frequency to the bandwidth.
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.