Main Content

getOctaveBandwidth

Bandwidth in number of octaves

Description

example

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

Examples

collapse all

创建一个dsp.NotchPeakFilterobject 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 thegetOctaveBandwidthfunction.

getOctaveBandwidth(np)
ans = 0.2881

Visualize the filter response usingfvtool.

fvtool(np)

Figure Magnitude Response (dB) contains an axes object. The axes object with title Magnitude Response (dB) contains an object of type line.

Input Arguments

collapse all

Notch peak filter whose bandwidth is measured in octaves, specified as adsp.NotchPeakFilterobject.

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