Académique Documents
Professionnel Documents
Culture Documents
2
3
Plot the magnitude, phase, and group delay of the transfer function
H1(z1) given below:
INDEX
SP 109 DSP Lab - Cycle 2
10
Find the pulse responses x1(n) of X1(z), h2(n) of H2(z), and y3(n) of
Y3(z) = X1(z)H2(z). Convolve the first 9 samples of x1(n) with the 9 samples of
h2(n) and compare the result with the first 9 samples of y3(n):
11
12
13
Evaluate the magnitude response of the transfer function H(z) at = 0.365 and at
= 0.635:
14
From the real sequence x(n) = {1 1 2 0.5 0 1 2 1}, show that the DFT of
[ xe(n)] = ReX(k) where the even part xe(n) = [x(n) + x((n))N]/2.
15
Design an IIR filter with the following specifications, using the MATLAB
function yulewalk: F = [0.0 0.3 0.5 0.7 0.9 1.0]; D = [0.2
0.4 0.5 0.3 0.6 1.0]. Plot the magnitude of the filter.
16(a) Let x(n) be a sinusoidal sequence of frequency 0 and of finite length N, that is,
Choose N = 32 and 0 = /4, and plot XR() and XI() for [,].
Compute the 32-point DFT of x(n), and plot its real and imaginary samples.
Superimpose the above DTFT plots on the DFT plots. Comment on the
results.
Repeat the above two parts for N = 32 and 0 = 1.1/4.
16(b Let x(n) = cos (n/4), and assume that we have only 16 samples available for
)
processing.
Compute the 16-point DFT of these 16 samples, and plot their magnitudes.
Now compute the 32-point DFT of the sequence formed by appending the
above 16 samples with 16 zero-valued samples. This is called zero padding.
Now plot the magnitudes of the DFT samples.
Repeat above step for the 64-point sequence by padding 48 zero-valued
samples.
Explain the effect and hence the purpose of the zero padding operation on the
spectrum
17(a) Let x(n) = {1, 2, 3, 4, 3, 2, 1} and h(n) = {1, 0, 1}.
Determine the convolution y(n) = x(n) * h(n) using the matrix-vector
multiplication approach
Develop a Matlab function to implement the convolution using the Toeplitz
matrix. The form of the function should be y = convtoep(x,h).
Verify your function, using the given sequences.
17(b Let x(n) = (0.9)nu(n).
)
Determine x(n) * x(n) and plot its first 101 samples.
Truncate x(n) to the first 51 samples. Compute and plot the convolution
x(n) * x(n), using the conv function.
Assume that x(n) is the impulse response of an LTI system. Using the filter
function, compute and plot the first 101 samples of the convolution x(n)
*x(n).
Which Matlab approach is best suited for infinite-length sequences and why?
18(a) Consider the following stable minimum-, maximum-, and mixed-phase systems
Hmin(z) = (1 0.25z1)(1 + 0.5z1)
Hmax(z) = (0.25 z1)(0.5 + z1)
Hmix(z) = (1 0.25z1)(0.5 + z1)
which have the same magnitude response. Compute and plot group delay responses.
Observe that the minimum-phase system has the minimum group delay.
18(b Consider the system function
)