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
NormalizedFrequency: false
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.
getQualityFactor(np)
ans = 5
Visualize the filter response using filterAnalyzer.
In the dsp.NotchPeakFilter object, you can now specify
the 3-dB bandwidth and center frequency values in normalized frequency units (0 to 1). To
enable this functionality, set the NormalizedFrequency property of the object to true.
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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.