You are on page 1of 3

Electrical & Communications Engineering Department Module Name: Principles of Digital Communication (1) Semester: 1 Year: 3 Lab Title:

Introduction to Fourier Analysis Lab No.: 1

Objectives:
1. To gain an insight into Fourier analysis (Fourier Transform & Fourier Series). 2. To investigate the effect of changing frequency, and amplitude of a signal on its spectrum. 3. To verify some of the Fourier Transform Properties. 4. To deal with the effect of signal harmonics and their effect in reconstructing the signal.

Prerequisites:
1. Basic familiarity with Fourier Transforms. 2. Basic familiarity with signals (sinusoidal triangle square) and its main parameter (amplitude frequency).

Equipment:
1. MATLAB Simulation Tool

Target:
1. 2. 3. 4. Matlab implementation of Fourier Transform of a sine wave. Matlab implementation of Fourier Transform of a rect signal Synthesize a square wave from its harmonics using matlab program Synthesize a square wave from its harmonics using matlab simulink

Procedure:
You can make use of the following functions: fft( ) fftshift( ) Abs( ) Subplot( ) Plot ( ) Rectpuls ( )

Task 1: (Fourier Transform: sine to impulse)


Write the necessary code for plotting a cos(2ft) function with the following specifications: Frequency = 50Hz Amplitude of 1 volt. Sampling frequency = 10KHz Number of samples = 20000

Find its Fourier transform, and plot the transform on another sub-plot on the same figure; comment on your answer. Change the amplitude of the cosine to 3 volts and the frequency to 10 Hz, and plot the function along with its spectrum on two subplots on the same figure. Comment on your answer.

Task 2: (Fourier Transform: rect to sinc)


Write the necessary code for plotting a rect(t) (rectangle) function with the following specifications: Width T = 10 seconds Sampling frequency of 2048 Hz Number of samples = 2048 samples Amplitude of 1 volt

Find its Fourier transform, and plot the transform on another sub-plot on the same figure.

Task 3: (Fourier series)


Write the necessary code for plotting square wave synthesized from 11 harmonics; the square wave has the following specifications: Fundamental frequency of 250 Hz Sampling frequency of 16000 Hz Number of samples = 100 samples Amplitude of 1 volt

, and plot the composing harmonics on a separate figure; comment on your answer.

Given that:

Task 4: (Matlabs Simulink)


Use Matlabs Simulink to synthesize a square wave signal consisting of a fundamental frequency and ten harmonics. Display the signal on a scope and draw the output to scale.

Report Submission:
1- Attach a report listing all your answers, drawings, and comments indicating question numbers. 2- Repeat task 4 using triangular wave instead of square wave. 3- State the effect of increasing the number of harmonics on reconstructing the signal.

Marking Criteria
1. Lab report requirement # 1(including technical performance):

2. Lab report requirement #2 3. Lab report requirement #3 4. Lab report quality

50% 20% 10% 20%

You might also like