function fftplot(x,fs,color)
	if(nargin < 3) color = ''; end 
	Y = fft(x,2048);
	Y = abs(Y(1:floor(length(Y)/2)));
	dbY = Y; %20*log10(Y);
	dbY = dbY - max(dbY);
	F = linspace(0,fs/2,length( Y /2))';
	semilogx( F,dbY,color); ylabel('dB'); 
	xlabel('Frequency','fontsize',7);
end