%% Perform Graphic Equalization
% Examine the <docid:audio_ref#mw_e15d6660-b810-47a6-81c3-eb80cc9d5f60
% Graphic EQ> block in a Simulink(R) model and tune parameters.

open_system('GraphicEQBlockBasicExample')

%% 
% 1. Open the <docid:dsp_ref#btqjkji Spectrum Analyzer> and Graphic EQ
% blocks.
% 
% 2. In the Graphic EQ block, click *Visualize equalizer response*.
% Modify gains of the graphic equalizer and see the magnitude
% response plot update automatically.
%
% 3. Run the model. Tune gains on the Graphic EQ to listen to the effect on
% your audio device and see the effect on the Spectrum Analyzer display.
% Double-click the <docid:simulink_ref#f7-891134 Manual Switch> block to
% toggle between the original and equalized signal as output.

open_system('GraphicEQBlockBasicExample/Spectrum Analyzer')
sim('GraphicEQBlockBasicExample',5)

%%

close_system('GraphicEQBlockBasicExample')

%% 
% Copyright 2012 The MathWorks, Inc.