Anda di halaman 1dari 2


Fundamentals of Digital Signal Processing ELC056

Professor Sangarapillai Lambotharan

Deadline for submission of report: Thursday, 14 December

2017, 3pm.

Marked assignment reports are expected to be returned to

the students on the 8th of January 2018.


These tasks are to be recorded in a laboratory book which is to be handed in at the end
of the course. Access to a PC running MATLAB together with hardcopy facility is


1 Sangarapillai Lambotharan
Fundamentals of Digital Signal Processing
Use the “sawtooth” and “square” functions from within MATLAB to generate the
above figures. The user should be prompted for the length of the sequence L, peak
value A and the period N. For the square wave the user should also specify the duty
cycle, namely the percentage the signal is positive.

Generate the first 100 samples of the above sequences when A = 7, N = 13 and the
duty cycle is 60%.

M2.4) a) Write a MATLAB program to generate a sinusoidal sequence

x[n] = Acos(ωon + φ) and plot the sequence with the “stem” function. The user
should specify the length L, amplitude A, angular frequency ωo, and the phase φ
where  o  (0,  ) and   [0,2 ] .

b) Use the program from a) to generate sinusoidal sequences with angular frequencies
i) 0.14π, ii) 0.24 π, iii) 0.34 π, iv) 0.68 π and v) 0.75 π. Determine the period of each
sequence from the plot and verify the results theoretically.

M3.1) Write a program to determine and plot the real and imaginary parts and the
magnitude and phase spectra of the following DTFT for r = 0.6, θ = 0; r = 0.9, θ = π;
and r = 0.99, θ = π/4

G(e j )  0  r 1
1 - 2r(cos )e - j  r 2 e - j2

M3.9) Write a program to compute the circular convolution of two length-N

sequences via the DFT-based approach. Use this program to determine the circular
convolution of the following pairs of sequences:

a) g[n] = { 3, 4, -2, 0, 1, -4) and h[n] = {1, -3, 0, 4, -2, 3}.

b) x[n] = {2+j3,3–j,-1+j2,j3,2+j4} and v[n] = {-3-j2,1+j4,1+j2,5+j3,1+j2}

Calculate the linear convolutions and compare the results.

M4.6) Plot the magnitude and phase responses of the causal IIR digital filter

0.0534(1  z -1 )(1  1.0166z -1  z -2 )

H(z) 
(1  0.683z -1 )(1  1.4461z -1  0.7957 z -2)

What type of filter does this transfer function represent? Determine the difference
equation representation of the transfer function and sketch a block diagram realization
for the filter.

2 Sangarapillai Lambotharan
Fundamentals of Digital Signal Processing