I am given 256 samples at a sampling rate of 48k and am asked to find the frequency of dominate tones and the amplitude of the largest tone. The data looks like this when plotted:
I assume I must use a FFT transform to do this. I've tried this in matlab:
Fs = 48000; x = dataSet; % 256 samples data set xdft = fft(x); maxAmp = max(abs(xdft)); %Not sure how I can grab the tones here freq = 0:Fs / length(x):Fs/2;
Not really sure how to proceed, Any ideas?