Professional Documents
Culture Documents
Student assignments
Dr. Dang Quang Hieu
September 22, 2014
Requirements
Students should complete as many assignments as possible in Matlab. Re-
sults are presented in a report which includes all necessary code, gures,
discussions. Group discussions are allowed but reports must be written and
delivered independently, in person, in Room TV-611, no later than 15 Nov
2014.
1 Signal representations and LTI systems
In this assigment, students will learn how to represent signals, perform cer-
tain operations on signals and the convolution sum / integral.
1.1 Discrete-time
Given two discrete sequences
x[n] = {1, 2, 3, 0
, 4, 7}
h[n] = {1, 2.5, 0, 2
, 5, 2}
(a) Input in the command window two discrete sequences above.
(b) Draw two sequences in the same gure with labels.
(c) Draw sequences x[n 3], x[n].
(d) Discrete-time convolution sum. Write a custom function dt_conv, not
using the built-in conv function, that takes two sequences x[n], h[n] as
the inputs, and produces y[n] = x[n] h[n] as the output.
(e) Draw the step response s[n] of the system
1
1.2 Continuous-time
Given a continuous-time signal x(t) and an LTI system with an impulse
response h(t)
x(t) = cos(4t + /4)[u(t) u(t 2)]
h(t) = (t e
2t
)u(t)
(a) Input in the command window x(t) and h(t) within the time interval
t [0, 6], time step t
0
= 0.001 [s].
(b) Draw x(t) and h(t) in the same gure with labels.
(c) Draw signals x(t 1), x(t), x(2t).
(d) Continuous-time convolution integral. Write a custom function ct_conv,
not using the built-in conv function, that takes x(t), h(t) as the inputs,
and produces y(t) = x(t) h(t) as the output. Draw all inputs and the
output in the same gure (use subplot function).
2 Fourier transforms
In this assignment, students will learn how to represent signals and systems
in frequency domain.
2.1 Discrete-time
Given a sequence
x[n] = {2, 1, 2
, 4, 0, 7}
(a) Draw the magnitude and phase spectrum in the same gure (use subplot
function).
(b) Draw the magnitude in dB scale.
2.2 Continuous-time
Given a continuous signal
x(t) = (t e
2t
)[u(t) u(t 4)]
(a) Draw the magnitude and phase spectrum in the same gure (use subplot
function).
(b) Draw the magnitude in dB scale.
2
2.3 Frequency response of an LTI system
An LTI system can be represented by a constant coecient linear dierence
/ dierential equation, e.g
y[n]1.1480y[n 1] + 1.5107y[n 2] 0.6991y[n 3] + 0.2703y[n 4] =
0.1808x[n] + 0.1047x[n 1] + 0.3107x[n 2] + 0.1047x[n 3] + 0.1808x[n 4]
(a) Use function freqz to draw the frequency response of this system.
(b) Can this system be a low-pass, high-pass, band-pass or band-stop lter?
Why?
3 Analysis of signals and systems
This assignment helps students to use z transform and Laplace transform
to analyze signals and systems.
3.1 Using z transform
An LTI system is given by
y[n] 2y[n 1] + 3y[n 3] = 2x[n] x[n 1] + 5x[n 2]
(a) Find and draw the zeros, poles of the transfer function H(z).
(b) Determine whether the system is stable or not.
(c) Perform partial fraction expansion using residue or residuez func-
tions, and nd the impulse response h[n] of the system.
3.2 Using Laplace transform
An LTI system is given by
y(t)
d
dt
y(t) + 3
d
2
dt
2
y(t) 2
d
3
dt
3
y(t) = 3x(t) 2
d
dt
x(t) +
d
2
dt
2
x(t)
(a) Find and draw the zeros, poles of the transfer function H(s).
(b) Determine whether the system is stable or not.
(c) Perform partial fraction expansion using residue function, and nd the
impulse response h(t) of the system.
3