Beruflich Dokumente
Kultur Dokumente
SCHOOL OF EE–ECE-CoE
INTRAMUROS, MURALLA, MANILA
Experiment No.7
Experiment Title:
Fourier Transform
This experiment was conducted with the purpose of defining the Fourier
transform and formulating an analysis of time domain function to frequency domain
and vice versa with regards to the said method. A computer software named
MATLAB was used to show and manifest the said objectives. The first step of the
experiment is focused on finding the Fourier transform of the given functions by the
use of the Fourier command. This requires the following commands:
>>Syms t w
>>f- %function
>>fourier(f)
Wherein, t represents the variable used in the given function, while w denotes
the variable to be used by MATLAB as the function undergoes the Fourier transform.
The given functions are characterized to have a variation in forms, which includes
exponential, fractional, and trigonometric. Nevertheless, the commands that were
applied are the same with all the functions.
Moving on, the next part of the experiment is focused on finding the inverse
Fourier transform of the given functions by the use of the ifourier command. This
requires the following commands:
>>Syms i w
>>f= %function
>>ifourier(f)
Wherein, i represents the variable used in the given function, while w still
denotes the variable to be used by MATLAB as the function undergoes Fourier
transform. The given functions are characterized to have a variation in forms, which
includes exponential, fractional, and trigonometric. Nevertheless, the commands that
were applied are the same with all the functions.
Conclusion
The equations that represents the Fourier transform and its inverse are observed
to be in contrast. The Fourier transform is a continuous function of frequency with
real and imaginary parts while the inverse Fourier Transform f(t) can be obtained by
substituting the known function into the second equation opposite and integrating.
References:
https://www.mathworks.com/help/matlab/math/fourier-transforms.html
https://en.wikipedia.org/wiki/Fourier_transform#Definition
http://www.thefouriertransform.com/transform/fourier.php
https://cnyack.homestead.com/files/afourtr/invfoutr.htm
Experiment 7 (PDS)
Answer: 2^(1/2)*pi^(1/2)*exp(-w^2/2)
Syntax:
>> syms t w
>> f = exp(-(t^2)/2)
f =
exp(-t^2/2)
>> ezplot(f)
>> fourier(f)
ans =
2^(1/2)*pi^(1/2)*exp(-w^2/2)
f =
5*exp(-3*(t - 5)^2)
>> ezplot(f)
>> fourier(f)
Answer: 10/(w^2 + 25)
Syntax:
>> syms t w
>> f = exp(-5*abs(t))
f =
exp(-5*abs(t))
>> ezplot(f)
>> fourier(f)
Answer: -pi*exp(-3*abs(w))*sign(w)*1i
Syntax:
>> syms t w
>> f = t/(9+t^2)
f =
t/(t^2 + 9)
f =
>> fourier(f)
Answer: -(w*pi^(1/2)*exp(-w^2/36)*1i)/18
Syntax:
>> syms t w
>> f = 3*t*exp(-9*t^2)
f =
3*t*exp(-9*t^2)
>> fourier(f)
Answer: -2^(1/2)*w*pi^(1/2)*exp(-w^2/2)*1i
Syntax:
>> syms t w
>> f = t*exp((-t^2)/2)
f =
t*exp(-t^2/2)
>> fourier(f)
Answer: (2^(1/2)*3^(1/2)*pi^(1/2)*(cos(w^2/12) -
sin(w^2/12)))/6
Syntax:
>> syms w a t
>> f = sin(3*t^2)
f =
sin(3*t^2)
>> fourier(f)
Answer: -(2^(1/2)*5^(1/2)*pi^(1/2)*(cos(w^2/20) +
sin(w^2/20)))/10
Syntax:
>> syms t w
>> f = cos(pi+5*t^2)
>> fourier(f)
Answer: fourier(exp(abs(w)), w, -t)/2
Syntax:
>> syms w t
>> F= pi*exp(abs(-w*1i))
F =
pi*exp(abs(w))
>> ifourier(F,t)
Answer: exp(-3*abs(t))
Syntax:
>> syms w t
>> F = 6/((w^2)+9)
F =
6/(w^2 + 9)
>> ifourier(F,t)
F =
>> ifourier(F,t)
Answer: (7*fourier(exp((w - 4)^2/32), w, -t))/(2*pi)
Syntax:
>> syms w t
>> F = 7*exp(((-w+4)^2)/32)
F =
7*exp((w - 4)^2/32)
>> ifourier(F,t)
Answer:
/ sqrt(7) (pi #1 (sign(t) + 1) 1i - pi #2 (sign(t) + 1) 1i) 10i
- | -------------------------------------------------------------
\ 7
pi)
Syntax:
>> syms w t
>> F = (5*(4+w*1i))/(9+8*w*1i-w^2)
F =
>> ifourier(F,t)
Answer:
exp(-6) exp(6 + t (- 4 + 3i) + 8i) (sign(t - 2i) + 1) 1i
--------------------------------------------------------
2
Syntax:
>> syms w t
>> F = (exp(2*w-6)*1i)/(4-(3-w)*1i)
F =
>> ifourier(F,t)
Answer: atan(t/5)/pi
Syntax:
>> syms w t
>> F = exp(-5*abs(w))/(w*1i)
F =
-(exp(-5*abs(w))*1i)/w
>> ifourier(F,t)
F =
exp(w*2i)/(5 + w*1i)
>> ifourier(F,t)
F =
(exp(20 - 4*w)*1i)/(w*1i + 3 - 5i)
>> ifourier(F,t)