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

Lab 10

This lab document describes verifying properties of the discrete-time Fourier transform (DTFT) in MATLAB. It provides code to experimentally validate the convolution and modulation properties of the DTFT by computing the DTFT of convolved/multiplied sequences and verifying they match the predicted DTFTs based on the respective properties. Students are asked to run the code for different sequences and explain how it works line-by-line to prove the properties.

Uploaded by

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

Lab 10

This lab document describes verifying properties of the discrete-time Fourier transform (DTFT) in MATLAB. It provides code to experimentally validate the convolution and modulation properties of the DTFT by computing the DTFT of convolved/multiplied sequences and verifying they match the predicted DTFTs based on the respective properties. Students are asked to run the code for different sequences and explain how it works line-by-line to prove the properties.

Uploaded by

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

Lab 10-Properties of DTFT

Course: EE-433L Lab Engineer: Engr. Sharoze Sohail


Objectives:
The goal of this laboratory is to verify the properties of DTFT in Matlab

Procedure:
The DTFT satisfies a number of useful properties that are often utilized in a number of
applications. A detailed listing of these properties and their analytical proofs can be found in any
text on digital signal processing. These properties can also be verified using MATLAB. We list
below a few selected properties that will be encountered later in this exercise.

LAB
Verification of the Convolution Property
% Convolution Property of DTFT
clc;
w = -pi:2*pi/255:pi;
x1 = [1 3 5 7 9 11 13 15 17];
x2 = [1 -2 3 -2 1];
y = conv(x1,x2);
h1 = freqz(x1, 1, w);
h2 = freqz(x2, 1, w);
hp = h1.*h2;
h3 = freqz(y,1,w);
subplot(2,2,1)
plot(w/pi,abs(hp));grid
title('Product of Magnitude Spectra')
subplot(2,2,2)
plot(w/pi,abs(h3));grid
title('Magnitude Spectrum of Convolved Sequence')
subplot(2,2,3)
plot(w/pi,angle(hp));grid
title('Sum of Phase Spectra')
subplot(2,2,4)
plot(w/pi,angle(h3));grid
title('Phase Spectrum of Convolved Sequence')

Questions:

Excercise1: Run above program for two different sets of sequences of varying lengths.
Excercise2: Explain the working of the program line by line. Proof that property using FFT and
IFFT command in Matlab. See the Matlab help and Examples.

Verification of the Modulation Property

% Modulation Property of DTFT


clc;
w = -pi:2*pi/255:pi;
x1 = [1 3 5 7 9 11 13 15 17];
x2 = [1 -1 1 -1 1 -1 1 -1 1];
y = x1.*x2;
h1 = freqz(x1, 1, w);
h2 = freqz(x2, 1, w);
h3 = freqz(y,1,w);
subplot(3,1,1)
plot(w/pi,abs(h1));grid
title('Magnitude Spectrum of First Sequence')
subplot(3,1,2)
plot(w/pi,abs(h2));grid
title('Magnitude Spectrum of Second Sequence')
subplot(3,1,3)
plot(w/pi,abs(h3));grid
title('Magnitude Spectrum of Product Sequence')

Questions:

Exercise 3: Run program for two different sets of sequences of varying lengths.
Excercise4: Verify Time Reversal Property of DTFT & Frequency shifting property of DTFT

You might also like