% VOLUME.M - Volume adjustment for equalizer script
%
%   Eddie Brown
%   Randy Dimmett
%   Almir Mutapcic
%
%   Linear Systems II - EE 262
%   December 07, 1998
%
%   This script computes V, the optimal volume adjustment 
%   for speaker output signal produced by script EQUALZ.
%   Usage: sound(V*y) should be equal to sound(cdout)

ywindow=y(ceil(.1*length(y):length(y)));
V=abs(max(cdout))/abs(max(ywindow));
