Digital Signals and Systems Exercise 1 Calculate the

  • Slides: 35
Download presentation
Digital Signals and Systems Exercise 1 Calculate the first eight sample values and sketch

Digital Signals and Systems Exercise 1 Calculate the first eight sample values and sketch each of the following sequences:

Solution 1

Solution 1

Exercise 2 Generate and plot each of the following sequences over the indicated interval

Exercise 2 Generate and plot each of the following sequences over the indicated interval using MATLAB.

Solution 2 Unit sample sequence Function Using MATLAB Unit sample sequence:

Solution 2 Unit sample sequence Function Using MATLAB Unit sample sequence:

Unit sample sequence:

Unit sample sequence:

Exercise 3 Let Determine and plot the following sequence.

Exercise 3 Let Determine and plot the following sequence.

Solution 3 The first part is obtained by shifting x(n) by 5 and the

Solution 3 The first part is obtained by shifting x(n) by 5 and the second part by shifting x(n) by − 4. Two signals addition function. Signals shifting function.

Exercise 4

Exercise 4

Solution 4

Solution 4

Exercise 5

Exercise 5

Solution 5

Solution 5

Exercise 6 Determine whether the following systems are linear

Exercise 6 Determine whether the following systems are linear

Solution 6 a

Solution 6 a

Solution 6 b

Solution 6 b

Solution 6 c

Solution 6 c

Exercise 7 Determine whether the following linear systems are time-invariant.

Exercise 7 Determine whether the following linear systems are time-invariant.

Solution 7 The response due to shifted input is while the shifted output is

Solution 7 The response due to shifted input is while the shifted output is Hence the given system is time-invariant. The response due to shifted input is while the shifted output is Hence the given system is not time-invariant.

Exercise 8 Determine which of the following linear systems is causal.

Exercise 8 Determine which of the following linear systems is causal.

Solution 8

Solution 8

Exercise 9 Find the unit-impulse response for each of the following linear systems.

Exercise 9 Find the unit-impulse response for each of the following linear systems.

Solution 9

Solution 9

Exercise 10 Determine the stability for each of the following linear systems.

Exercise 10 Determine the stability for each of the following linear systems.

Solution 10

Solution 10

Exercise 11 Using the sequence definitions, evaluate the digital convolution

Exercise 11 Using the sequence definitions, evaluate the digital convolution

Solution 11 k -4 -3 -2 -1 0 1 2 3 4 5 6

Solution 11 k -4 -3 -2 -1 0 1 2 3 4 5 6 x(k) 2 1 1 h(-k) 1 1 2 2 2 y(0)=4 h(1 -k) 1 1 2 2 2 y(1)=6 h(2 -k) 1 1 2 2 2 y(2)=8 h(3 -k) 1 1 2 2 2 y(3)=6 h(4 -k) 1 1 2 2 2 y(4)=5 h(5 -k) 1 1 2 2 2 y(5)=2 h(6 -k) 1 1 2 2 2 y(6)=1

Exercise 12 Let the rectangular pulse be an input to an LTI system with

Exercise 12 Let the rectangular pulse be an input to an LTI system with impulse response Determine the output Given that the output of the system is given by either of the following two equivalent forms of the convolution sum:

Solution 12 There are three possible conditions under which u(n − k) can be

Solution 12 There are three possible conditions under which u(n − k) can be evaluated. In this case the nonzero values of x(n) and h(n) do not overlap. 0 ≤ n < 9: Then u(n − k) = 1, 0 ≤ k ≤ n. In this case the impulse response h(n) partially overlaps the input x(n). n ≥ 9: Then u(n − k) = 1, 0 ≤ k ≤ 9

Exercise 13 a. Find the even and the odd components of the discrete-time signal

Exercise 13 a. Find the even and the odd components of the discrete-time signal b. Use MATLAB function to decompose x[n] sequence into its even and odd components.

Solution 13 a The odd component

Solution 13 a The odd component

Solution 13 a Using MATLAB operations discussed so far, we can obtain the following

Solution 13 a Using MATLAB operations discussed so far, we can obtain the following evenodd function. MATLAB program to determine and plot its even and odd parts of x[n].

Exercise 14 Consider an autoregressive system represented by a first-order difference equation . system

Exercise 14 Consider an autoregressive system represented by a first-order difference equation . system a. Find the impulse response h[n] of the b. Compute the response of the system to c. Verify results with MATLAB. using the convolution sum.

Solution 14 a

Solution 14 a

Solution 14 b Another way to solve this problem is to notice that the

Solution 14 b Another way to solve this problem is to notice that the input can be rewritten as and since the system is LTI, the output can be written as which gives which coincides with the above more general solution.

Solution 14 c The following MATLAB script is used to verify the above results.

Solution 14 c The following MATLAB script is used to verify the above results. The MATLAB function filter is used to compute the impulse response and the response of the filter to the pulse. The output obtained then with filter coincided with the output computed using MATLAB function conv, as it should.