How do I do FFT for small amount of points?
Show older comments
I have a small amount of data points X=[8 7 2 4 5 1] that I want to perform FFT for in order to find the trig functions that compose this repeating pattern. Is there an easy way to code this? I've seen a bunch of code that works for continuous samples of waves but I want to downsize it.
Answers (2)
Walter Roberson
on 10 Dec 2016
fft(X)
is happy to work with small number of points
Joseph Schmidt
on 10 Dec 2016
1 Comment
Walter Roberson
on 10 Dec 2016
See the first example in the fft documentation as that shows how to label the x axis with frequency
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!