You are on page 1of 1

Test for DSP lab

Time allowed: 180 mins

1. Write a Matlab program P1 to plot the following sequence with the time index in
range [-5,20]. Then calculate its energy.
4 𝑛 2𝜋𝑛
𝑥(𝑛) = 2𝛿 (𝑛) + 3𝛿 (𝑛 − 2) − ( ) 𝑐𝑜𝑠 ( ) 𝑢(𝑛 − 4)
5 3
2. An audio signal includes three sinusoidal components whose frequencies are
500Hz, 1500Hz, and 4000Hz is sampled at the rate of 20kHz. Write a Matlab
program P2 to plot three signals in duration of three periods including CT signal,
naturally sampled signal, and flat-top sampled signal in the same coordinate
system.
3. Write a Matlab program P3 to plot the first 50 samples of the output sequence of
the DT system characterized by the difference equation:
𝑦(𝑛) = 𝑥 (𝑛) − 𝑥(𝑛 − 3) + 4𝑦(𝑛 − 1) − 3𝑦(𝑛 − 2)
1 𝑛
with the input sequence of 𝑥 (𝑛) = (− ) 𝑢(𝑛).
2

4. Modify the program P3 in problem 3 to plot the pole-zero pattern and the
frequency response of the above DT system.
5. Write a Matlab program P4 to examine the properties of the above DT system
given in problem 3: linear, time invariant, and stable.

You might also like