I wrote some code in Matlab to do a simple FFT on a sine wave. How does one interpret the amplitude?
Rich (BB code):
% FFT
fs=10 % sampling frequency
x=sin(2*pi*[0:1/fs:10]); % frequency of signal is 1Hz
N=131072
X = abs(fft(x,N));
F = fs*[0:N-1]/N;
figure
plot(F,X)
xlabel('Hz')
ylabel('I never remember what the magnitude in a FFT means...ehh')
legend(sprintf('sampling frequency = %d Hz',fs))
axis([0 fs/2 0 max(X)*1.1])