Main Content


Bandwidth in number of octaves



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


collapse all

Create a dsp.NotchPeakFilter object in the default configuration.

np = dsp.NotchPeakFilter
np = 
  dsp.NotchPeakFilter with properties:

      Specification: 'Bandwidth and center frequency'
          Bandwidth: 2205
    CenterFrequency: 11025
         SampleRate: 44100

Determine the octave bandwidth of the filter using the getOctaveBandwidth function.

ans = 0.2881

Visualize the filter response using fvtool.


Figure Figure 1: Magnitude Response (dB) contains an axes object. The axes object with title Magnitude Response (dB), xlabel Frequency (kHz), ylabel Magnitude (dB) contains an object of type line.

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