%% Get Center Frequency of Notch Peak Filter
% Create a dsp.NotchPeakFilter object with the Specification property set to 'Coefficients'.

np = dsp.NotchPeakFilter('Specification','Coefficients')

% 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.

getCenterFrequency(np)

% Visualize the filter response using fvtool.

fvtool(np)

%
% Copyright 2018 The MathWorks, Inc.