understanding fft output: two different results when working with sampling frequencies well above the highest frequency component
Show older comments
Hello,
I'm trying to analyse the frequency components of a signal using fft. My signal is just a vector with 11 points (Y0.txt) in a time domain (X0.txt). I interpolate these data to get evenly spaced points. Then I implement fft using the matlab example (fft_obs.m).
When I choose a sampling time of 2*10^(-5), and hence a sampling frequency of 5*10^4, I obtain the frequency spectrum of fig1 with one relevant frequency component. Nevertheless, if I choose a smaller sampling time, 2*10^(-7), which means a bigger sampling frequency, I get not one, but two relevant frequency components (fig2).
In both cases I think I'm working well above the highest frequency component, and so, in both cases avoiding aliasing. However, the outputs are very different. My question is: why am I getting this differences if I am working above the sampling frequency? How do I know which one is "more correct"?
Thank you!
Ana
2 Comments
Geoff Hayes
on 2 Jul 2014
Maria - please post the code that you are you using so that we have a better idea of the steps that you are taking. In your question, you reference certain files (Y0.txt,X0.txt, fft_obs.m) and figures (fig1,fig2). Please include these as attachments to your question.
Maria M.
on 2 Jul 2014
Accepted Answer
More Answers (0)
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!