Docsity

Discrete Time Systems Part 1-Digital Signal Processing-Lab Exercise, Exercises of Digital Signal Processing

Toggle sidebar
bg1
S&S (CIS-312) Lab #1(Report)
4th Semester Spring,2010
Courtesy Dr. M. Tahir Akhtar Page 1 of 4
Due date: 25-03-2010
Name:
Laboratory Exercise 1
DISCRETE-TIME SIGNALS: TIME-DOMAIN REPRESENTATION
1.1 GENERATION OF SEQUENCES
Project 1.1 Unit sample and unit step sequences
A copy of Program P1_1: Generation of a Unit Sample Sequence is given below.
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
Q1.1 The unit sample sequence u[n] generated by running Program P1_1 is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q1.2 The purpose of clf command is -
The purpose of axis command is -
The purpose of title command is -
The purpose of xlabel command is -
The purpose of ylabel command is -
Q1.3 The modified Program P1_1 to generate a delayed unit sample sequence ud[n] with a delay
of 11 samples is given below along with the sequence generated by running this program.
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q1.4 The modified Program P1_1 to generate a unit step sequence s[n] is given below along with
the sequence generated by running this program.
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q1.5 The modified Program P1_1 to generate a unit step sequence sd[n] with an advance of 7
samples is given below along with the sequence generated by running this program.
< Insert program code here. Copy from m-file(s) and paste. >
docsity.com
pf3
pf4

Partial preview of the text

Download Discrete Time Systems Part 1-Digital Signal Processing-Lab Exercise and more Exercises Digital Signal Processing in PDF only on Docsity!

Courtesy Dr. M. Tahir Akhtar Page 1 of 4

Due date: 25-03-

Name:

Laboratory Exercise 1

DISCRETE-TIME SIGNALS: TIME-DOMAIN REPRESENTATION

1.1 GENERATION OF SEQUENCES

Project 1.1 Unit sample and unit step sequences

A copy of Program P1_1: Generation of a Unit Sample Sequence is given below.

< Insert program code here. Copy from m-file(s) and paste. >

Answers :

Q1.1 The unit sample sequence u[n] generated by running Program P1_1 is shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.2 The purpose of clf command is -

The purpose of axis command is -

The purpose of title command is -

The purpose of xlabel command is -

The purpose of ylabel command is -

Q1.3 The modified Program P1_1 to generate a delayed unit sample sequence ud[n] with a delay

of 11 samples is given below along with the sequence generated by running this program.

< Insert program code here. Copy from m-file(s) and paste. >

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.4 The modified Program P1_1 to generate a unit step sequence s[n] is given below along with

the sequence generated by running this program.

< Insert program code here. Copy from m-file(s) and paste. >

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.5 The modified Program P1_1 to generate a unit step sequence sd[n] with an advance of 7

samples is given below along with the sequence generated by running this program.

< Insert program code here. Copy from m-file(s) and paste. >

Courtesy Dr. M. Tahir Akhtar Page 2 of 4

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Project 1.2 Exponential signals

A copy of Programs P1_2: Generation of a complex exponential sequence (KeCn, K=2.0, C=(-1/12)+(pi/6)*i ) and P1_3: Generation of a real exponential sequence

(Kan, K=0.2, a=1.2) are given below.

< Insert program code here. Copy from m-file(s) and paste. >

Answers:

Q1.6 The complex-valued exponential sequence generated by running Program P1_2 is shown

below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.7 The parameter controlling the rate of growth or decay of this sequence is -

The parameter controlling the amplitude of this sequence is -

Q1.8 The result of changing the parameter c to (1/12)+(pi/6)*i is -

Q1.9 The purpose of the operator real is -

The purpose of the operator imag is -

Q1.10 The purpose of the command subplot is -

Q1.11 The real-valued exponential sequence generated by running Program P1_3 is shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.12 The parameter controlling the rate of growth or decay of this sequence is -

The parameter controlling the amplitude of this sequence is -

Q1.13 The difference between the arithmetic operators ^ and .^ is -

Q1.14 The sequence generated by running Program P1_3 with the parameter a changed to 0.9 and

the parameter K changed to 20 is shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q1.15 The length of this sequence is -

It is controlled by the following MATLAB command line:

Courtesy Dr. M. Tahir Akhtar Page 4 of 4

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

A comparison of this new sequence with the one generated in Question Q1.17 shows -

A sinusoidal sequence of frequency 1.1 generated by modifying Program P1_4 is shown below.

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

A comparison of this new sequence with the one generated in Question Q1.17 shows -

Q1.23 The sinusoidal sequence of length 50, frequency 0.08, amplitude 2.5, and phase shift of 90

degrees generated by modifying Program P1_4 is displayed below.

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

The period of this sequence is -

Q1.24 By replacing the stem command in Program P1_4 with the plot command, the plot obtained

is as shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

The difference between the new plot and the one generated in Question Q1.17 is -

Q1.25 By replacing the stem command in Program P1_4 with the stairs command the plot

obtained is as shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

The difference between the new plot and those generated in Questions Q1.17 and Q1.24 is -

1.2 WORKSPACE INFORMATION

Q1.26 The information displayed in the command window as a result of the who command is -

Q1.27 The information displayed in the command window as a result of the whos command is -