0% found this document useful (0 votes)
83 views10 pages

LABEX3

This document contains the code and output of various programs analyzing discrete-time signals in the frequency domain. The programs compute the discrete-time Fourier transform (DTFT) and discrete Fourier transform (DFT) of sequences, investigating properties like time-shifting, frequency-shifting, and time reversal. Program outputs include plots of the magnitude and phase spectra of the DTFT/DFT which are analyzed to verify properties. Questions are included throughout requiring modifications to the programs and interpretation of results.

Uploaded by

MalcolmMelvin
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
Download as doc, pdf, or txt
0% found this document useful (0 votes)
83 views10 pages

LABEX3

This document contains the code and output of various programs analyzing discrete-time signals in the frequency domain. The programs compute the discrete-time Fourier transform (DTFT) and discrete Fourier transform (DFT) of sequences, investigating properties like time-shifting, frequency-shifting, and time reversal. Program outputs include plots of the magnitude and phase spectra of the DTFT/DFT which are analyzed to verify properties. Questions are included throughout requiring modifications to the programs and interpretation of results.

Uploaded by

MalcolmMelvin
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 10

Digital Signal Processing Laboratory

Name:
Section:
Laboratory Exercise 3
DISCRETE-TIME SIGNALS: FREQUENCY-DOMAIN
REPRESENTATIONS
3.1 DISCRETE-TIME F!RIER TR"NSFRM
Pro#ect 3.1 DTFT Com$%tation
A copy of Program P3_1 is given below:
< Insert program code here. Copy from m-le!s" and paste. #
"ns&ers'
(3.1 $he e%pression of the &$'$ being eval(ated in Program P3_1 is -
$he f(nction of the pause command is -
(3.) $he plots generated by r(nning Program P3_1 are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
$he &$'$ is a ___________ f(nction of .
Its period is -
$he types of symmetries e%hibited by the fo(r plots are as follows:
(3.3 $he re,(ired modications to Program P3_1 to eval(ate the given &$'$ of -3.3 are
given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he plots generated by r(nning the modied Program P3_1 are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
$he &$'$ is a ___________ f(nction of .
Its period is -
1
Digital Signal Processing Laboratory
$he .(mp in the phase spectr(m is ca(sed by -
$he phase spectr(m eval(ated with the .(mp removed by the command unwrap is
as given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
(3.* $he re,(ired modications to Program P3_1 to eval(ate the given &$'$ of -3./ are
given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he plots generated by r(nning the modied Program P3_1 are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
$he &$'$ is a ___________ f(nction of .
Its period is -
$he .(mp in the phase spectr(m is ca(sed by -
(3.+ $he re,(ired modications to Program P3_1 to plot the phase in degrees are
indicated below:
< Insert program code here. Copy from m-le!s" and paste. #
Pro#ect 3.) DTFT Pro$erties
"ns&ers'
(3., $he modied Program P3_0 created by adding appropriate comment statements1
and adding program statements for labeling the two a%es of each plot being
generated by the program is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he parameter controlling the amo(nt of time-shift is -
(3.- $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.. Program P3_0 was r(n for the following val(e of the time-shift -
$he plots generated by r(nning the modied program are given below:
2
Digital Signal Processing Laboratory
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3./ Program P3_0 was r(n for the following val(es of the time-shift and for the
following val(es of length for the se,(ence -
$he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.10 $he modied Program P3_3 created by adding appropriate comment statements1
and adding program statements for labeling the two a%es of each plot being
generated by the program is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he parameter controlling the amo(nt of fre,(ency-shift is -
(3.11 $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.1) Program P3_3 was r(n for the following val(e of the fre,(ency-shift -
$he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.13 Program P3_3 was r(n for the following val(es of the fre,(ency-shift and for the
following val(es of length for the se,(ence -
$he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.1* $he modied Program P3_/ created by adding appropriate comment statements1
and adding program statements for labeling the two a%es of each plot being
generated by the program is given below:
3
Digital Signal Processing Laboratory
< Insert program code here. Copy from m-le!s" and paste. #
(3.1+ $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.1, Program P3_/ was r(n for the following two di3erent sets of se,(ences of varying
lengths -
$he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.1- $he modied Program P3_4 created by adding appropriate comment statements1
and adding program statements for labeling the two a%es of each plot being
generated by the program is given below5
< Insert program code here. Copy from m-le!s" and paste. #
(3.1. $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.1/ Program P3_4 was r(n for the following two di3erent sets of se,(ences of varying
lengths -
$he plots generated by r(nning the modied program are given below5
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.)0 $he modied Program P3_6 created by adding appropriate comment statements1
and adding program statements for labeling the two a%es of each plot being
generated by the program is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he program implements the time-reversal operation as follows -
(3.)1 $he plots generated by r(nning the modied program are given below:
4
Digital Signal Processing Laboratory
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.)) Program P3_6 was r(n for the following two di3erent sets of se,(ences of varying
lengths -
$he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
3.) DISCRETE F!RIER TR"NSFRM
Pro#ect 3.3 DFT an1 IDFT Com$%tations
"ns&ers'
(3.)3 $he )A$*A+ program to comp(te and plot the L-point &'$ X[k] of a length-N
se,(ence x[n] with L N and then to comp(te and plot the I&'$ of X[k] is
given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he &'$ and the I&'$ pairs generated by r(nning the program for se,(ences of
di3erent lengths N and for di3erent val(es of the &'$ length L are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.)* $he )A$*A+ program to comp(te the 7-point &'$ of two length-N real se,(ences
(sing a single N-point &'$ and compare the res(lt by comp(ting directly the two N-
point &'$s is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he &'$s generated by r(nning the program for se,(ences of di3erent lengths N
are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
5
Digital Signal Processing Laboratory
(3.)+ $he )A$*A+ program to comp(te the 2N-point &'$ of a length-2N real se,(ence
(sing a single N-point DFT and compare the result by computing directly the2N-point &'$
is shown below:
< Insert program code here. Copy from m-le!s" and paste. #
$he &'$s generated by r(nning the program for se,(ences of di3erent lengths 2N
are shown below5
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
Pro#ect 3.* DFT Pro$erties
"ns&ers'
(3.), $he p(rpose of the command rem in the f(nction circshift is
(3.)- $he f(nction circshift operates as follows5
(3.). $he p(rpose of the operator ~= in the f(nction circonv is
(3.)/ $he f(nction circonv operates as follows5
(3.30 $he modied Program P3_8 created by adding appropriate comment statements1
and adding program statements for labeling each plot being generated by the
program is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he parameter determining the amo(nt of time-shifting is -
If the amo(nt of time-shift is greater than the se,(ence length then -
(3.31 $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3) $he modied Program P3_9 created by adding appropriate comment statements1
and adding program statements for labeling each plot being generated by the
program is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he amo(nt of time-shift is -
6
Digital Signal Processing Laboratory
(3.33 $he plots generated by r(nning the modied program are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3* $he plots generated by r(nning the modied program for the following two
di3erent amo(nts of time-shifts1 with the amo(nt of shift indicated1 are shown
below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3+ $he plots generated by r(nning the modied program for the following two
di3erent se,(ences of di3erent lengths1 with the lengths indicated1 are shown
below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3, A copy of Program P3_: is given below along with the plots generated by r(nning
this program:
< Insert program code here. Copy from m-le!s" and paste. #
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3- Program P3_: was r(n again for the following two di3erent sets of e,(al-length
se,(ences:
$he plots generated are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.3. A copy of Program P3_1; is given below along with the plots generated by r(nning
this program:
< Insert program code here. Copy from m-le!s" and paste. #
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
7
Digital Signal Processing Laboratory
'rom these plots we ma2e the following observations:
(3.3/ Program P3_1; was r(n again for the following two di3erent sets of se,(ences of
(ne,(al lengths:
$he plots generated are shown below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.*0 $he )A$*A+ program to develop the linear convol(tion of two se,(ences via the
&'$ of each is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he plots generated by r(nning this program for the se,(ences of -3.39 are shown
below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
$he plots generated by r(nning this program for the se,(ences of -3.3: are shown
below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.*1 A copy of Program P3_11 is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he relation between the se,(ence x1[n] and x[n] is -
(3.*) $he plots generated by r(nning Program P3_11 are given below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
$he imaginary part of XEF is<is not e,(al to =ero. $his res(lt can be e%plained as
follows:
(3.*3 $he re,(ired modications to Program P3_11 to verify the relation between the
&'$ of the periodic odd part and the imaginary part of XEF are given below along
with the plots generated by r(nning this program:
< Insert program code here. Copy from m-le!s" and paste. #
8
Digital Signal Processing Laboratory
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
'rom these plots we ma2e the following observations:
(3.** A copy of Program P3_10 is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he val(es for a and b we get by r(nning this program are -
(3.*+ $he re,(ired modications to Program P3_11 are given below:
< Insert program code here. Copy from m-le!s" and paste. #
3.3 2-TR"NSFRM
Pro#ect 3.+ "nalysis o3 2-Trans3orms
"ns&ers'
(3.*, $he fre,(ency response of the =-transform obtained (sing Program P3_1 is plotted
below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
(3.*- $he )A$*A+ program to comp(te and display the poles and =eros1 to comp(te and
display the factored form1 and to generate the pole-=ero plot of a rational =-
transform is given below:
< Insert program code here. Copy from m-le!s" and paste. #
>sing this program we obtain the following res(lts on the =-transform G(z) of
-3./6:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
(3.*. 'rom the pole-=ero plot generated in -(estion -3./81 the n(mber of regions of
convergence !?@C" of G(z) are -
All possible ?@Cs of this =-transform are s2etched below:
'rom the pole-=ero plot it can be seen that the &$'$ -
(3.*/ $he )A$*A+ program to comp(te and display the rational =-transform from its
=eros1 poles and gain constant is given below:
< Insert program code here. Copy from m-le!s" and paste. #
9
Digital Signal Processing Laboratory
$he rational form of a =-transform with the given poles1 =eros1 and gain is fo(nd to
be -
Pro#ect 3., In4erse 2-Trans3orm
"ns&ers'
(3.+0 $he )A$*A+ program to comp(te the rst L samples of the inverse of a rational =-
transform is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he plot of the rst 4; samples of the inverse of G(z) of -3./6 obtained (sing
this program is s2etched below:
< Insert )A$*A+ g(re!s" here. Copy from g(re window!s" and
paste. #
(3.+1 $he )A$*A+ program to determine the partial-fraction e%pansion of a rational =-
transform is given below:
< Insert program code here. Copy from m-le!s" and paste. #
$he partial-fraction e%pansion of G(z) of -3./6 obtained (sing this program is
shown below:
'rom the above partial-fraction e%pansion we arrive at the inverse =-transform
g[n] as shown below:
Date: Signat%re:
10

You might also like