Understanding Matlab FFT example

1) Why does the x-axis (frequency) end at 500? How do I know that there aren’t more frequencies or are they just ignored? It ends at 500Hz because that is the Nyquist frequency of the signal when sampled at 1000Hz. Look at this line in the Mathworks example: f = Fs/2*linspace(0,1,NFFT/2+1); The frequency axis of … Read more