function [data] = plotADfft(wave);

wavefft = fft(wave);
wavemag = abs(wavefft);

f = (0:1024)'*(1000/2048);
plot(f(1:1023), wavemag(1:1023)); %axis([0 50 0 25]); xlabel ('Frequency (Hz)'); ylabel ('Magnitude');
