Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Assignment
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
required.
M2.2)
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%.
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
1
G(e j ) 0 r 1
1 - 2r(cos )e - j r 2 e - j2
M4.6) Plot the magnitude and phase responses of the causal IIR digital filter
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