I am trying to make FFT simulation in Matlab by generating noise added two sinus waves in 60Hz and 100Hz.
After adding the noise into these signals then I have applied the FFT as I put my Matlab code below.
But I am in difficulty interpreting the FFT plot which shows two spectral peaks in the plot diagram below.
Could you please explain how to interpret this spectrum? Why we see two peaks in the spectrum? How can we reduce the spectral to show only the frequencies of 60Hz and 100Hz?
%%%% Noise_Added_Two_Sinus%%% >> f1=60; >> f2=100; >> fs=512; >> t=0:1/fs:2-1/fs; >> x1=2.4*sin(2*pi*f1*t); >> x2=0.96*sin(2*pi*f2*t); >> y=x1+x2+randn(size(t)); >> F=fft(y); >> plot(abs(F))