Solving an integer with FFT in matlab

  • Context: MATLAB 
  • Thread starter Thread starter ser23
  • Start date Start date
  • Tags Tags
    Fft Integer Matlab
Click For Summary
SUMMARY

The discussion focuses on solving an integer using Fast Fourier Transform (FFT) in MATLAB, specifically for the function x^2 * exp(-x^2) over the range from negative to positive infinity. The user seeks assistance with applying the Fourier transform and has attempted to utilize the FFT function in MATLAB, specifically using Y = fft(...) to find amplitudes and y = ifft(...) for the inverse transform. The conversation highlights the need for clarity on the Fourier transform's definition and its application in MATLAB for this specific problem.

PREREQUISITES
  • Understanding of Fast Fourier Transform (FFT) in MATLAB
  • Familiarity with Fourier transform concepts
  • Basic knowledge of MATLAB syntax and functions
  • Experience with numerical integration techniques
NEXT STEPS
  • Research the MATLAB FFT function and its parameters
  • Learn about the Fourier transform and its applications in signal processing
  • Explore numerical integration methods for functions over infinite intervals
  • Study the inverse FFT process and its significance in signal reconstruction
USEFUL FOR

Students, researchers, and engineers working with signal processing or numerical methods in MATLAB, particularly those tackling Fourier transform applications.

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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 4 ·
Replies
4
Views
2K