function lspecplot(X,sfreq)

% function lspecplot(X, sfreq)


A = 20*log10(abs(X));
N = length(A);

F = (0:(N-1))*(sfreq/(2*N));
plot(F,A,F,A,'o')
title('DB Spectrum');
xlabel('Frequency');
ylabel('20*log10(Amplitude)');



