getOctaveBandwidth
Bandwidth in number of octaves
Description
Examples
Get Octave Bandwidth of Notch Peak Filter
Create a dsp.NotchPeakFilter
object with the NormalizedFrequency
property set to true
.
np = dsp.NotchPeakFilter(NormalizedFrequency=true)
np = dsp.NotchPeakFilter with properties: Specification: 'Bandwidth and center frequency' Bandwidth: 0.1000 CenterFrequency: 0.5000 NormalizedFrequency: true
Determine the octave bandwidth of the filter using the getOctaveBandwidth
function.
getOctaveBandwidth(np)
ans = 0.2881
Visualize the filter response using filterAnalyzer
.
filterAnalyzer(np)
Input Arguments
npFilter
— Notch peak filter
dsp.NotchPeakFilter
dsp.NotchPeakFilter
Notch peak filter whose bandwidth is measured in octaves, specified as a dsp.NotchPeakFilter
object.
Output Arguments
N
— Number of octaves
scalar
Bandwidth of the filter measured in number of octaves, returned as a scalar.
Data Types: double
Version History
Introduced in R2014aR2024a: Support for normalized frequencies
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
.
See Also
Functions
Objects
MATLAB Command
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)