Main Content

getOctaveBandwidth

Bandwidth in number of octaves

Description

N = getOctaveBandwidth(npFilter) returns the bandwidth of the notch peak filter, measured in number of octaves.

example

Examples

collapse all

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

collapse all

Notch peak filter whose bandwidth is measured in octaves, specified as a dsp.NotchPeakFilter object.

Output Arguments

collapse all

Bandwidth of the filter measured in number of octaves, returned as a scalar.

Data Types: double

Version History

Introduced in R2014a

expand all