You are on page 1of 4

Name:Muhammad Hassaan Tariq ------------------ EE-322L Analog and Digital Communication

Roll No:2020-ee-75 Marks Obtained:----------------------

Lab Report

Experiment No. 1
Exponential Fourier Series

Task-1: The objective of this experiment is to calculate and plot magnitude and phase
exponential Fourier series coefficients.

Code for Task-1:

Magnitude and Phase of Fourier series coefficients:

Plots for Task-1:


Discussion about the Code and Plots of Task-1:
1. We have evaluated the fourier series coefficients using

()
− jnπ
1 nπ
Dn ¿
4
e 4
sinc(
4
)

Also we have plotted the magnitude | Dn | (in volts) and phase 6 Dn (in degrees) of the first twenty-one
coefficients {n = −10, −9, ..., 10} versus frequency (in rad/sec).

Task 2:

Generating two periods of function g(t):

Code for Task-2:

Function code:

G(t) using using unit step:


Plots for task 2:

Discussion about the Code and Plots of Task-2:

We have plotted two periods of g(t) , directly i.e., by creating a vector of samples of g(t) and
plotting that vector.

Task-3:

Finding sum of fourier series coefficients:

Code for Task-3:

Plots for task 3:


Discussion about codes and plots of task 3:
Plot an approximation to g(t) using these first twenty-one terms of the exponential Fourier series.

Solution of the Assignment:

Discussion about the Solution/Results of Assignment:


Conclusion:

You might also like