fft of short data length

5 views (last 30 days)
cldb0220
cldb0220 on 30 Apr 2015
Commented: Adam on 1 May 2015
I want to get frequency information of signal whose data length is not long enough (i.e. short).
However, if I use fft function and plot the results, it looked weird.
(It looks like they have two broken lines rather than round figure one.)
I think this is because the length of data is too short.
Is there any method or function that I can apply in this case?
Thanks.

Answers (1)

Matt J
Matt J on 30 Apr 2015
Edited: Matt J on 30 Apr 2015
Yep. Zero-padding.
But realize that this will just give you more frequency samples, resulting in a smoother plot. It doesn't improve the accuracy of the FFT result as an approximation of the continuous Fourier Transform. Only finer sampling in the non-Fourier domain can do that.
  2 Comments
cldb0220
cldb0220 on 1 May 2015
Thank you so much! I'll try it!
Adam
Adam on 1 May 2015
The FFT will zero-pad for you though if you specify the FFT length (which I usually specify as next power of 2 up from my data length, but there are exceptions - for shorter signals I often go for longer than that.

Sign in to comment.

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!