Solving an integer with FFT in matlab

  • MATLAB
  • Thread starter ser23
  • Start date
6
0

Main Question or Discussion Point

1. Homework Statement

Hi, I hope someone could help me, I have been trying to solve this problem with FFT in matlab, why?, because my teacher gave it as homework. The problem is the following.

Obtain the value of the following integer using FFT:



2. Homework Equations

the integer goes from [-infinte, infinite], and the function is x^2*exp(-x^2)*dx

3. The Attempt at a Solution
I checked the definition of the fourier transform and I checked in books, matlab everywhere and I cant find any info that could help me, I hope someone here can, THANK YOU.
 

Answers and Replies

208
0
I'm pretty new to the transform but I have been doing some FFTs in matlab lately and this is what i've been doing:

first you have to find the amplitudes with:

Y = fft(...)

then you have to do the inverse FFT to find your answer:

y = ifft(..)

check the help system for the arguments and i think you'll see how to do it.
 

Related Threads for: Solving an integer with FFT in matlab

Replies
8
Views
6K
Replies
4
Views
10K
  • Last Post
Replies
12
Views
4K
  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
1
Views
5K
Replies
11
Views
2K
  • Last Post
Replies
10
Views
5K
  • Last Post
Replies
2
Views
2K
Top