Escolar Documentos
Profissional Documentos
Cultura Documentos
Instructions:
In this assignment the follwing constants are used: a, b, c, k1 and k2. The constants a, b
and c are to be chosen from the last three digits of your ID number:
20**B*A*abcG/20**A*PSabcG Further, k1 = largest{a,b,c} and 0<k2=smallest{a,b,c}.
Let h[n], x[n] and y[n] denote the impulse response, input and output of the system,
respectively.
The assignment consists of three parts: 1 to 3. Write one single MATLAB program
giving the solution to all three parts in the same program. Name the program as
f20**A*PSabc.m / f20**B*A*abc.m. Give appropriate comments for each part of the
program.
Use pause to separate the different subparts and plots in your program.
Use disp() to display your comments wherever necessary (for example, comment on
stability).
Get the first 21 samples of the impulse response sequence: h (use impz()).
Plot h. (Use stem()).
Plot the pole-zero map of the transfer function H(z). (Use zplane.)
Comment on the stability of the system.
If a (causal) input is given by x[n] = {1,-1,1,-1}, determine the output, y[n], by
convolution of x[n] with h[n]. Plot x[n] and y[n]. (Use conv() and subplot).
f. Plot the magnitude plot and phase plot for x[n], h[n] and y[n] (use freqz).
b. Prepare a word document named f20**A*PSabc.doc giving all the results and the plots.
c. Submit the two files on moodle.