Você está na página 1de 35

Digital Signals and Systems

Exercise 1

Calculate the first eight sample values and sketch each of the following sequences:
Solution 1
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:


Unit sample 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 second part by shifting x(n) by 4.

Two signals addition


function.

Signals shifting function.


Exercise 4

Given the digital signals in Figures write an expression for each digital signal using the unit-impulse
sequence and its shifted sequences.
Solution 4
Exercise 5

Assume that a DS processor with a sampling time interval of 0.01 second converts the following analog
signals to a digital signal; determine the digital sequence for each of the analog signals.
Solution 5
Exercise 6

Determine whether the following systems are linear


Solution 6 a
Solution 6 b
Solution 6 c
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 =

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.


Solution 8
Exercise 9

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

Determine the stability for each of the following linear systems.


Solution 10
Exercise 11

Using the sequence definitions, evaluate the digital convolution


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 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


evaluated.

In this case the nonzero values of x(n) and h(n) do not overlap.
0 n < 9:Thenu(n k)=1, 0 k n.

In this case the impulse response h(n) partially overlaps the input
x(n).
n 9:Thenu(n k)=1, 0 k 9
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
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

. Find the impulse response h[n] of .the system

b. Compute the response of the system to using the convolution sum.

c. Verify results with MATLAB.


Solution 14 a

The impulse response can be found recursively. Letting


and initial condition .

from which a general expression for the impulse response is obtained as:
Solution 14 b
The response to using the convolution sum is then given by

e as functions of zero otherwise, and zero


erwise (in the two cases, draw the two signals as functions of and verify this is true), y[n] can be expressed

Another way to solve this problem is to notice that the input can be rewritten as

nd 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.

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.

Você também pode gostar