This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Bandwidth in number of octaves


N = getOctaveBandwidth(npFilter)



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.


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

Introduced in R2014a