function newsig = normalize(origsig, fftlength, numbits) % newsig = normalize(originalsignal, fftlength, numberbits) % % NORMALIZE takes in a signal and normalizes its power spectrum % to a 0 db maximum. This is done by taking into account the % FFT transform length that will be used and the bits per sample. newsig=origsig./(fftlength.*(2.^(numbits-1)));