0% found this document useful (0 votes)
22 views

Lab 11

The document discusses tasks to understand Fourier series and Fourier transforms. It includes calculating the Fourier transform of a sine wave, plotting the magnitude and phase responses, and verifying Fourier transform properties for various signals including exponentials and Dirac delta functions.

Uploaded by

Hey Marko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Lab 11

The document discusses tasks to understand Fourier series and Fourier transforms. It includes calculating the Fourier transform of a sine wave, plotting the magnitude and phase responses, and verifying Fourier transform properties for various signals including exponentials and Dirac delta functions.

Uploaded by

Hey Marko
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SIGNAL & SYSTEM LAB 11 2018-EE-17

OBJECT: TO UNDERSTAND FOURIER SERIES AND FOURIER TRANSFORM.


Task 1
CALCULATE THE FOURIER TRANSFORM OF SINE WAVE WITH UNIT FREQUENCY AND
AMPLITUDE AND THE RANGE=0<T<100
Code:
syms t;
a=1;
f=1;
x=a*sin(2*pi*f*t);
y=fourier(x)

Output:
y=
-pi*(dirac(w - 2*pi) - dirac(2*pi + w))*1i

Task 2
CALCULATE MAGNITUDE & PHASE RESPONSE FREQUENCY AND AMPLITUDE OF ABOVE
SIGNAL AND PLOT THEM
Code:
syms t;
a=1;
f=1;
x=a*sin(2*pi*f*t);
y=fourier(x);
t=0:0.1:100;
m=abs(x);
p=phase(y);
subplot(2,1,1)
ezplot(m)
subplot(2,1,2)
ezplot(p)

Output:

SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY Page 1


SIGNAL & SYSTEM LAB 11 2018-EE-17

Task 3
VERIFY THE FOLLOWING RESULTS
1. E^-AT u(T)=1/(A+FW)
CODE:
syms t;
a=1;
x=exp(-a*t)*heaviside(t);
y=fourier(x)

RESULT:
y = 1/(w*i + 1)

2. E^-AT U(T)=1/(A+JW)^2
CODE:
syms t;
a=1;
x=t*exp(-a*t)*heaviside(t);
y=fourier(x)

RESULT:
y = 1/(w*i + 1)^2

3. S(T)=1
CODE:

syms t;
a=1;
x=dirac(t)
y=fourier(x)
z=fourier(y)

RESULT:

z = 2*pi*dirac(w)

4. 1=A Πs(w)
CODE:

syms t;
a=1;
x=dirac(t)
y=fourier(x)

RESULT:

y=1

SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY Page 2


SIGNAL & SYSTEM LAB 11 2018-EE-17

Task 4
GENERATE A SIGNAL AS SUM OF TWO SINOIDAL OF FREQUENCIES 400HZ AND 800
HZ .USE FFT TO FIND FT
Code:
syms t;
a=1;
f1=400;
f2=800;
t=0:0.1:10;
x1=a*sin(2*pi*f1*t)
x2=a*sin(2*pi*f2*t)
x=x1+x2
y=fft(x)
plot(t,y)

Output:

Task 5
GENERATE F.T OF E^(A-AT)*U(T) .PLOT ORIGINAL FUNCTION MAGNITUDE AND
FREQUENCY RESPONSE.
Code:
syms t;
a=1;
f=1;
x=exp(a-a*t)*heaviside(t);
y=fourier(x);
t=0:0.1:100;
w=-2*pi:0.1:2*pi;
m=abs(y);
p=phase(y);
subplot(2,2,1)
ezplot(x)
subplot(2,2,2)
ezplot(m)
subplot(2,2,3)
ezplot(p)

Output:

SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY Page 3

You might also like