For example if I perform a DFT on the function cos(6*pi*t) over the range t=0 to t=0.2 sec, with a sampling frequency of 1000Hz, the FFT in MATLAB results in a frequency of 5 Hz.  This is due to the length of the sample range (1/0.2 sec = 5 Hz).  However if I take the same function and sampling rate, but instead take a sample from 0 to 5 seconds I would get the actual frequency of the function (3Hz), but not one related to the sample length (1/5=0.2 Hz)?  Can someone explain how I can determine whether I have an adequate sample rage and rate to correctly perform a FFT?

Similar questions and discussions