Fourier transforming from x and y columns

2 views (last 30 days)
FMN
FMN on 20 May 2015
Answered: Walter Roberson on 20 May 2015
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
Thorsten on 20 May 2015
u = fft(y);
  1 Comment
Walter Roberson
Walter Roberson on 20 May 2015
No, that would only work if the x were at consistent intervals.

Sign in to comment.


Walter Roberson
Walter Roberson on 20 May 2015

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!