I'm trying to get to grips with the relationship between a signal $x(t)$, its Fourier transform $X(F)$ and the graph representation of $t$ plotted against $|X(F)|$. I've been using Matlab to perform the calculations and plot the graphs and see if I can predict where the spike will be on the X axis for a particular signal.
Firstly I generate a vector called xaxis which contains values from 0 to 300 in steps of 1. If I generate another vector called signal by using $signal = sin(3*(xaxis/100)*2*pi)$ and plot it, it comes out as expected - the wave oscillates 9 times between 0 and 300. The Fourier transform for this wave is also straightforward - the spike on the graph of $|X(F)|$ occurs at 9, which makes sense.
If, however, I use the xaxis range $0$ to $2\pi$ in steps of $\frac{\pi}{100}$ and define signal with $signal = sin(3*xaxis)$, the signal wave clearly oscillates three times over the interval but the frequency spike does not occur at 3 - it's roughly 0.95 from what I can see. I have a feeling that I'm interpreting the X axis value of the spike incorrectly but I can't get my head around exactly how the value of 0.95 is related to the correct answer. Could anyone enlighten me?
