Analog Signal Processing Tutorial 2: Sampling and Reconstruction
Analog Signal Processing Tutorial 2: Sampling and Reconstruction
1. The analog signal x(t) =10 sin(4t) + 10sin(12t) + 5sin(20t), where t is in seconds,
is sampled at a rate of fs = 8Hz. Determine the signal xa(t) aliased with x (t) . Show that the
two signals have the same sample values, that is, show that x(nT)=xa(nT). Repeat the above
questions if the sampling rate is fs =14Hz.
2. The analog signal xt)=sin(6t)[1+2cos(4t)], where t is in milliseconds, is sampled at a rate
of 4kHz. The resulting samples are immediately reconstructed by an ideal reconstructor.
Determine the analog signal xa(t) at the output of the reconstructor.
3. The sequence x(n) cos n , n was obtained by sampling a CT signal
4
xa (t ) cos(0t ), t at a sampling rate of 1000samples/sec. What are two
possible values of 0 that could have resulted in the sequence x(n)?
4. The Continuous Time (CT) signal xa(t)=sin(20t) + cos(40t) is sampled with a sampling
n 2n
period T to obtain the Discrete Time (DT) signal x(n) sin cos
5 5
a. Determine a choice for T consistent with this information
b. Is your choice for T in Part (a) unique? If so, explain why. If not, specify another
choice of T consistent with the information given.
5. The Continuous Time (CT) signal xa(t) = cos(800t) is sampled with period T to obtain a
Discrete Time (DT) signal xd(n)=xa(nt)
a. Compute and sketch the magnitude of the CT Fourier Transform of xa(t) and the DT
Fourier Transform of xd(n) for T=1ms
b. Repeat part (a) for T=2ms
c. What is the maximum period Tmax such that no aliasing occurs in the sampling
process?
6. Consider the following sound wave, where t is in milliseconds:
x(t)=sin(10t) + sin(20t) +sin(60t)+ sin(90t)
This signal is prefiltered by an analog antialiasing prefilter H(f) and then sampled at an
audio rate of 40 kHz. The resulting samples are immediately reconstructed using an ideal
reconstructor. Determine the output ya(t) of the reconstructor in the following cases and
compare it with the audible part of x(t):
a. When there is no prefilter, that is, H(f) 1.
b. When H(f) is an ideal prefilter with cut off of 20 kHz.
c. When H(f) is a practical prefilter that has a flat passband up to 20 kHz and attenuates
at a rate of 48 dB/octave beyond 20 kHz. (You may ignore the effects of the phase
response of the filter.)
Digital Signal Processing - Tutorial No. 3
Quantization Error, Coding and Noise Shaping
Prepared by Prof. Dr. Thuong Le-Tien
March 2020
1. Consider an A/D converter with full scale range of R=4 volts. Determine the quantized
value as well as the 3 bit representation of the following analog input values: x=1.9, 1.1,
0.7, -2,2, -1.3, -0.4, -1.7, -0.9 by writing a table of results. Repeat using an offset binary
converter and discussing about the unipolar binary?
3. A digital audio mixing system uses 16 separate recording channels, each sampling at a
44.1kHz rate and quantizing each sample with 16 bits. The digitized samples are saved
on a hard disk for further processing.
a. How many megabytes of hard disk space are required to record a 3-minute song
for a 16-channel recording?
b. Each channel requires about 25 multiplier/accumulation (MAC) instructions to
perform the processing of each input sample (this corresponds to about 12 second-
order parametric EQ filters covering the audio band). In how many nanoseconds
should each MAC instruction be executed for:
(i) Each channel?
(ii) All 16 channels, assuming they are handled by a single processor?
4. If the quantized value xQ is obtained by truncation of x instead of rounding, show that the
truncation error e = xQ - x will be in the interval [–Q, 0]. Assume a uniform probability
density p(e) over this interval, that is
Question 1
A discrete time signal x(n) is given in the figure
Question 4
The input and output of a stable LTI system
Question 1
The Impulse response h(n) of a filter is non zero over the index range of n be [3,6]. The input
signal x(n) to this filter is non zero over the index range of n be [10,20]. Consider the direct and
LTI forms of convolution
a. Determine the overall index range n for the output y(n). For each n, determine the
corresponding summation range over m, for both the direct and LTI forms.
b. Assume h(n) = 1 and x(n) = 1 over their respective index ranges. Calculate and sketch
the output y(n). Identify (with an explanation) the input on/off transient and steady state
parts of y(n).
Question 2:
Given x(n)={-1.0.2.1.-3.2.5.3.-2,2} and h(n)={-1,-2, 0,3,2}, calculate y(n)=x(n)*h(n) by
a. Using the direct form
b. Convolution table
c. Overlap add method with block 4 samples
d. Flip and slide form
Question 3
An LTI filter has impulse response h(n) = an u(n), where /a/<1. Using the convolution
summation formula in question 1, derive closed-form expressions for the output signal y(n)
when the input is:
a. A unit step, x(n) = u(n)
b. An alternating step, x(n) = (-1)n u(n)
c. In each case, determine the steady state and transient response of the filter.
Question 4
Consider the filter with I/O equation: y(n) = x(n) – 2x(n-3)
a. Determine the impulse response sequence h(n) for all n(> or =)0
b. Draw the block diagram realization of the filter
c. The input sequence x(n) = [1,1,2,2,4,-3,-2,0,2,-1]. Using convolution, compute the
corresponding y(n) using the Flip and slide method.
d. Repeat question (c) with the overlap add blocks of 4samples/block.
e. Classify the filter be FIR or IIR responses?
Question 5:
Consider the filter with I/O equation y(n) = 0.8y(n-1) + x(n)
a. Determine the impulse response h(n) in the forms: Recursive form; vector form with
specific filter coefficients; maths equation.
b. Draw the block diagram realization of the filter
c. Classify the filter be FIR or IIR responses?
Digital Signal Processing
Tutorial No.6 - Z-Transform
Prepared by Prof. Dr. Thuong Le-Tien
Date: October 2021
y (t ) C
Question 4.
Consider the RL circuit shown in figure
a. Find the different equation relating the output voltage y(t) across R and the input
voltage x(t).
b. Find the input response h(t) of the circuit.
c. Find the step response s(t) of the circuit.
L
x (t ) y (t )
x (t )
R
Digital Signal Processing
Tutorial No. 7: LTI Systems and Z Tranform
Prepared by Prof. Dr. Thuong Le-Tien
November 2021
Question 1:
Three systems A,B, and C have the inputs and outputs indicated in the figures. Determine
whether each system could be LTI. If your answer is yes, specify whether there could be
more than one LTI system with the given input-output pair. Explain your answer
Question 2:
Using partial fractions or power series expansions, determine all possible inverse z-
transforms of the following z-transforms, sketch their ROCs, and discuss their stability
and causality properties:
4 0.6 z 1 0.2 z 2 10 z 2
a. X ( z ) ; b. X ( z )
(1 0.5 z 1 )(1 0.4 z 1 ) 1 0.25 z 2
Question 3
The system L in the figure is known to be linear. Show are three output signals y1(n), y2(n),
y3(n) in response to three input signals x1(n), x2(n) and x3(n), respectively
Question 2:
Compute the convolution x(n)*h(n) for the x(n) and h(n) below:
a. x(n)={-1,2,1}, h(n)={1,0,-1,2}
b. x(n)=(-4)-n u(n), h(n)={1,2,-3}
c. x(n)=(-1)-n u(n) and h(n)=e-n u(n)
d. x(n)=u(-n), h(n)=n(u(n)-u(n-3))
Question 3:
Find the z-transform (if it exists) and the corresponding region of
convergence for each of the following signals:
a. {1,0,-1,0,1,-1,3}
b. 2n u(n)-3n u(-n-1)
c. (0.8)n u(n) + 0.9n u(-n-1)
d. (1/2)n (u(n)-u(n-26)
e. (1/2)n cos(n/3+/4) u(n)
Question 4:
Find the inverse z-transform of
z ( z 4) z2 1
a. b. c.
z 6z 6
2
z2 9 z 10 z 2 2z 2
Question 5:
The 2-sided z-transform of x(n) is given by
z 1
X ( z)
1 3z 1 1 5 z 1
a. Determine all possible ROCs for X(z)
b. For each ROC in (a), find x(n)
c. Discuss the stability and causality of each case.
November 2021 1
Tutorial No.9 for Digital Signal Processing
Discrete Fourier Transform and Fast Fourier Transform
Q1. A 256ms portion of an analog signal is sampled at a rate of 16kHz and the
resulting L samples are saved for further processing. What is L? The 256 point
DFT of these samples is computed.
a. What is the frequency spacing in Hz of the computed DFT values?
b. What is the total number of required multiplications if the computations
are done directly using the definition of DFT?
c. What is the total number of required multiplications if the L samples are
first wrapped modulo 256 and then 256-point DFT is computed?
d. What is the total number of required multiplications if a 256-point FFT is
computed of the wrapped signal?
Q2. By definition, the first and second of Fibonacci numbers are 0 and 1 (e.g.
h(0)=0 and h(1)=1), and each subsequent number is the sum of the previous two.
a. Write the Fibonacci sequence h(n) for n=0, 1, …,9 described by the above
definition?
b. Calculate 4-point FFT of the sequence of ten numbers in (a) using the
definition in matrix form.
c. Recomputed by first reducing x modulo 4 (wrapped signal) and then
computing the 4-DFT of the result.
d. Finally, compute the 4-point IDFT of the result and verify that you recover
the mod-4 wrapped version of x.
Q3. Compute the 8-point FFT of the length-8 signal x, in which these samples are
the first 8 samples of x(n)=4cos(n/2)+cos(n), discuss whether the 8 computed
FFT values accurately represent the expected spectrum of x(n). What FFT indices
correspond to the two frequencies of the cosinusoids?
Question 1:
n
11
When the input to a causal LTI system is x(n) u (n) 2 n u n 1 and the z-
4
3 2 3
transform of the output is
1 z 1
Y ( z)
1 z
1
1 0.5 z 1 1 2 z 1
a. Find the z-transform of x(n)
b. What is the region of convergence of Y(z)?
c. Find the impulse response of the system
d. Is the system stable?
Question 2:
Consider an LTI system that is stable and for which H(z), the z-transform of the impulse
response, is given by
2 4 z 1 2 z 2
H ( z)
1 3z 1 4 z 2
Question 3.
a. Determine the unit step response of the causal system for which the z-transform of
1 z3
the impulse response is H ( z )
1 z4
b. Realize the above filter with the direct form and Canonical form
1
DIGITAL SIGNAL PROCESSING
Question 1:
3 7 z 1 5 z 2
The impulse response is given by H ( z ) . Suppose x[n], the input
1 2.5 z 1 z 2
to the system,
a. Find all available impulse responses in the time domain h[n] with their ROCs
and stabilities.
b. Discuss about the causality and stability properties of the results in (a)
c. Sketch the zeros and pole pattern in the Z-plane of the above system then
sketch the frequency response of the system.
d. Realize the block diagram of the system in Direct Form I and Direct form II
(Canonical Form)
Question 2:
Find the overall impulse response of following system?
Question 3:
A digital reverberation processor has frequency response:
0.5 e j 8
H ( )
1 0.5e j 8
where is the digital frequency in [radians/sample].
a. Determine the causal impulse response h(n), for all n>=0 and sketch it versus
n.
b. Find zeros and poles of the system.
c. Sketch frequency response of the system
d. Realized the block diagram for the system.
DSP Prepared by Prof. Dr. Thuong Le-Tien
Question 2:
The 2-sided z-transform of an impulse response of a system h(n) is given by
z 1
H ( z)
(1 3z 1 )(1 5 z 1 )
a. Find and sketch the Pole/zero pattern of the response then determine all possible ROCs
and discuss the stability and causality of each case for H(z)
b. Find all possible solution for h(n)
c. Find the I/O equation of the system
d. Realize the direct form I of the system.
Question 3:
z 3
A causal LTI digital filter has the transfer function H ( z )
4 z 2
a. Find and sketch the pole/zero pattern of the filter.
b. Find the impulse response h(n) of the filter
c. Is the filter stable?
d. Sketch the magnitude response │H(j)│of the filter
e. Realize the block diagram with the canonical form.
December 2021 1