%% Get Coefficients for Cascade Structure
% Create a graphicEQ System object™ using the default Cascade structure and 1-octave bandwidth. A 1-octave bandwidth graphic equalizer consists of 10 bandpass filters. Specify the gains of each filter using the Gains property.

equalizer = graphicEQ('Gains',randn(1,10))

%
% Call coeffs to return the coefficients of the filter designed by the graphic equalizer. Because the structure of the object is Cascade, the coefficients are returned as 2-D matrix. Columns correspond to the cascaded stages of the filter.

[B,A] = coeffs(equalizer)

% Copyright 2012 The MathWorks, Inc.