getBandwidth

System object: dsp.ParametricEQFilter
Package: dsp

Convert quality factor or bandwidth coefficient to bandwidth in Hz

Compatibility

Note

The dsp.ParametricEQFilter object will be removed in a future release. Existing instances of the object continue to run. For new code, use the multibandParametricEQ object from Audio Toolbox™ instead.

Syntax

BW = getBandwidth(H)

Description

BW = getBandwidth(H) returns the bandwidth of the parametric equalizer filter. The bandwidth is measured halfway between 1 and the peak (or notch) gain of the filter. The gain is specified in absolute power units (filter magnitude squared). If the Specification property is set to Quality factor and center frequency, the bandwidth is determined from the quality factor of the filter. If the Specification property is set to Coefficients, the bandwidth is determined from the BandwidthCoefficient value and the sample rate of the filter.