Sei sulla pagina 1di 2

EE414: MATLAB Project No.

1
Due to Tue 29-10-2013

Q1 - Plot the following sequences using the stem command:


(a) x1[n] = 0.5[n-3] 1.5[n] + 2[n-2].
(n from -10 to 10 )
(b) x2[n] = (u[n-2]-u[n-12])e-0.5n cos(20.2n). (n from 0 to 20 )
(c) x3[n] = u[n]0.8n sin(20.1n).

(n from -10 to 10 )

-----------------------------------------------------------------------------------Q2- Plot the even and odd parts of the following sequences:
(a) x1[n] = 2 cos(20.1n /4)
(b) x2[n] = e-0.5n cos(20.2n)

(n from 0 to 20 )
(n from 0 to 20 )

Comment on your answers!


----------------------------------------------------------------------------------Q3- Consider the following system:
y[n] + 0.71y[n-1] -0.46 y[n-2] -0.62 y[n-3] =
0.9x[n] - 0.45x[n-1] + 0.35x[n-2]+ 0.002x[n-3]
(a) Generate and plot the unit sample response with 40
samples.
(b) Generate and plot the unit step response with 40
samples.
(c) If x[n] = u[n]0.8n. Find and plot the output y[n] using
the command.

(d) Repeat part (c) using the command conv. Comment on


your answers.
-----------------------------------------------------------------------------------Q4- Consider the following system:
y[n] - 0.6y[n-1] + 3y[n-2] = 2x[n] + x [n-1] + 3x [n-2]
(a) Find H(ejw) using the command freqz.
(b) Plot the real and the imaginary parts of H(ejw) on the
same figure.
(c) Plot the magnitude and phase of H(ejw) on the same
figure.
-----------------------------------------------------------------------------------

Potrebbero piacerti anche