Confusion in figuring out the relation between actual frequency values and FFT plot indexes in MATLAB
问题 I know that there are a lot of similar questions to this, I am still unable to figure out the answer. Let's say we have time signal in MATLAB: t=0:1/44100:1 and a cosine signal with frequency 500Hz: x=cos(2*pi*500*t); Now, I am trying to plot the magnitude spectrum obtained using the fft command on signal x FFT=abs(fft(x)) plot(FFT) According to the theory, we should get two peaks in the plot, one at -500 Hz and the other at 500Hz. What I don't understand is that I do get two peaks but I can