Fourier transforming from x and y columns
Show older comments
I have a function; y = f(x) in a text file column 1 = x, column 2 = y. I have imported the columns and declared them as x and y respectively. This is how the function looks like when I put plot(x,y). So, back to the question, how do I Fourier-transform this function? Thank you!

Answers (2)
Thorsten
on 20 May 2015
u = fft(y);
1 Comment
Walter Roberson
on 20 May 2015
No, that would only work if the x were at consistent intervals.
Categories
Find more on MATLAB 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!