function rdc = removedc(sig)
% rdc = removedc(sig)
%
% removedc - removes dc offset from signal by subtracting the average value of
% the entire signal from each element in the signal (centers it around 0)
%
% ELEC 301 Project - "Mars Lander the Theologian", aka, "Speaker Verification"
% Sara MacAlpine, Aamir Virani, Nipul Bharani, JP Slavinsky
% WRC (OCEE) Class of 2001 - Fall '99

avg = sum(sig)/length(sig);
rdc = sig - avg;
