I’m trying to obtain the FFT spectrum of these data: gggttt.host.sk/sample.xls
using Excel. @Paul R helped me a lot in another question to figure out the meaning of bins but there are still questions which I’d like to understand.
First, Excel, even when the moduli are represented in log scale, does not show them in dB. What do you do to have these magnitudes converted to dB?
Further, there’s a concern about the window function, aliasing etc. Since I’m crunching data from exactly one period, it seems that applying a window function is not necessary. Also, because I need only the fundamental, second and third harmonic and no other peaks in the higher bins, taking care of aliasing also does not seem necessary. Of great concern, however, is the non-n^2 number of points – 1253. I tried padding them with zeros up to 2048 or doing the FFT on just the first 1024, ignoring the 229 remaining points and, finally, deleting every 6th point and then deleting every 52nd point and doubling the last point to get the necessary 1024. Ultimately, padding with zeros turned out to be the worst approach – couples of high and low bars repeat throughout the whole spectrum. Truncating the data (processing only the first 1024 points) appears to work the best. I would really like to know what someone with experience in signal processing would recommend as the best approach in producing the most realistic spectrum.
Here are examples of two different ways I applied the FFT on these data:
gggttt.host.sk/fig_truncated.jpg
gggttt.host.sk/fig_padded.jpg
gggttt.host.sk/fig_every_6th_and_52nd_point_deleted.jpg