Solving an integer with FFT in matlab

  • Context: MATLAB 
  • Thread starter Thread starter ser23
  • Start date Start date
  • Tags Tags
    Fft Integer Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
ser23
Messages
6
Reaction score
0

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:



Homework Equations



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

The Attempt at a Solution


I checked the definition of the Fourier transform and I checked in books, MATLAB everywhere and I can't find any info that could help me, I hope someone here can, THANK YOU.
 
Physics news on Phys.org
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.