I am given the following task, however, I am lost conceptually, and require some assistance on the procedure. Given raw noisy data where the signal is a single sinusoid and noise is a random content. The sampling rate is known. I am asked to plot the autocorrelation function and calculate the Singal-to-Noise-Ratio (in dB) from this plot. I have found the autocorrelation and take the FFT of the function as follows:
ac = autocorr(data,fs);
ac_fft = fft(ac);
Amp_ac = abs(ac_fft); % Peaks at 2 frequency in the plot
However, I am lost after this point. What does the FFT of autocorrelation outputs conceptually? And how can I proceed from here to find the SNR? I will be solving this in MATLAB, but mainly I need help with the procedure rather than the code. Thanks.