Get center frequency
CF = getCenterFrequency(npFilter)
dsp.NotchPeakFilter object with the
Specification property set to
np = dsp.NotchPeakFilter('Specification','Coefficients')
np = dsp.NotchPeakFilter with properties: Specification: 'Coefficients' BandwidthCoefficient: 0.7265 CenterFrequencyCoefficient: 0 SampleRate: 44100
Determine the center frequency of the notch peak filter using the
getCenterFrequency function. When the
Specification is set to
'Coefficients', the center frequency is determined from the
CenterFrequencyCoefficient value and the sample rate.
ans = 11025
Visualize the filter response using
CF— Center frequency
Center frequency of the filter, returned as a scalar.