For all the requested figures below, use a discrete time rangeof n = [0,50] on the x-axis. Remember your script should beself-sufficient and run without any errors to receive anypoints.
You are given a discrete time system (1) below (same system asHomework 5(a)):
(E - 0.2)(E - 0.4)(E - 0.6) y[n] = (2 - 3E)x[n]Â Â Â Â Â Â Â Â Â Â Â Â Â (1)
Question 1. Compute the impulse response h[n] of system (1) above,using the recursive solution method. You will not receive anypoints for using another method. Given the system input x[n]defined by equation (2) below, compute the output yr[n] to thesystem (1), using h[n] you have just computed and x[n], by discreteconvolution. You will not receive any points for computing yr[n]using another method.
x[n] = cos( pi x n/32)u[n]Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â (2)
Display computed yr[n] together with y[n] you have computed inHomework 5(a) on the same figure. Display yr[n] in red circles(‘ro’), and y[n] in blue stars (‘b+’). You are NOT asked to displayh[n], do NOT display h[n]. Do not forget to properly label andannotate your figure and follow the time range requirement set onthe top of this page. You will not receive full pointsotherwise.
Note: Use a stem plot, with the help of the built in Matlabfunction “stem()†in order to properly represent a discrete signalon a figure.