%% Design Two-Band Parametric Equalizer
% Specify the filter order, peak gain in dB, normalized center frequencies, and normalized bandwidth of the bands of your parametric equalizer.

N = [2, ...
     4];
 
gain = [6, ...
      -4]; 
  
centerFreq = [0.25, ...
              0.75]; 
          
bandwidth = [0.12, ...
              0.1];

%
% Generate the filter coefficients using the specified parameters.

[B,A] = designParamEQ(N,gain,centerFreq,bandwidth,"Orientation","row");

%
% Visualize your filter design.

fvtool([B,A]);

% Copyright 2012 The MathWorks, Inc.