0% found this document useful (0 votes)
66 views

Signals and Systems 2

This document discusses linear time-invariant (LTI) systems and convolution. It begins by explaining how any input signal can be represented as a continuum of impulses and how convolution uses a system's impulse response to calculate the output for more complex inputs. Convolution sums the scaled and time-shifted impulse responses with the input signal. The document provides examples of convolving input signals with impulse responses to calculate the output signal of LTI systems. It also discusses how the impulse response completely characterizes an LTI system and can be used to predict its response to any input. Convolution is implemented using the conv() function in MATLAB.

Uploaded by

osama_tahir_3
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views

Signals and Systems 2

This document discusses linear time-invariant (LTI) systems and convolution. It begins by explaining how any input signal can be represented as a continuum of impulses and how convolution uses a system's impulse response to calculate the output for more complex inputs. Convolution sums the scaled and time-shifted impulse responses with the input signal. The document provides examples of convolving input signals with impulse responses to calculate the output signal of LTI systems. It also discusses how the impulse response completely characterizes an LTI system and can be used to predict its response to any input. Convolution is implemented using the conv() function in MATLAB.

Uploaded by

osama_tahir_3
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 16

1/17

Linear Systems and Convolution


2. Linear systems, Convolution: Impulse response,
input signals as continuum of impulses. Convolution,
discrete-time and continuous-time. LTI systems and
convolution
Specific objectives for today:
Were looking at discrete time signals and systems

Understand a systems impulse response properties

Show how any input signal can be decomposed into a


continuum of impulses

DT Convolution for time varying and time invariant


systems
2/17
Introduction to Convolution
Definition Convolution is an operator that takes an input
signal and returns an output signal, based on knowledge
about the systems unit impulse response h[n].
The basic idea behind convolution is to use the systems
response to a simple input signal to calculate the response
to more complex signals
This is possible for LTI systems because they possess the
superposition property:

+ + +
k
k k
n x a n x a n x a n x a n x ] [ ] [ ] [ ] [ ] [
3 3 2 2 1 1

+ + +
k
k k
n y a n y a n y a n y a n y ] [ ] [ ] [ ] [ ] [
3 3 2 2 1 1
System y[n] = h[n] x[n] = [n]
System: h[n] y[n] x[n]
3/17
Discrete Impulses & Time Shifts
Basic idea: use a (infinite) set of discrete time impulses to
represent any signal.
Consider any discrete input signal x[n]. This can be written as
the linear sum of a set of unit impulse signals:
Therefore, the signal can be expressed as:
In general, any discrete signal can be represented as:



k
k n k x n x ] [ ] [ ] [

'

'

'



+
1 0
1 ] 1 [
] 1 [ ] 1 [
0 0
0 ] 0 [
] [ ] 0 [
1 0
1 ] 1 [
] 1 [ ] 1 [
n
n x
n x
n
n x
n x
n
n x
n x

] 1 [ ] 1 [ + n x
actual value Impulse, time
shifted signal
The sifting property
+ + + + + + + ] 1 [ ] 1 [ ] [ ] 0 [ ] 1 [ ] 1 [ ] 2 [ ] 2 [ ] [ n x n x n x n x n x
4/17
Example
The discrete signal x[n]
Is decomposed into the following
additive components
x[-4][n+4] +
x[-2][n+2] + x[-1][n+1] +
x[-3][n+3] +
5/17
Discrete, Unit Impulse System Response
A very important way to analyse a system is to study the
output signal when a unit impulse signal is used as an
input
Loosely speaking, this corresponds to giving the system
a kick at n=0, and then seeing what happens
This is so common, a specific notation, h[n], is used to
denote the output signal, rather than the more general
y[n].
The output signal can be used to infer properties about
the systems structure and its parameters .
System: h[n] [n]
6/17
Types of Unit Impulse Response
Looking at unit impulse
responses, allows you to
determine certain system
properties
Causal, stable, finite impulse response
y[n] = x[n] + 0.5x[n-1] + 0.25x[n-2]
Causal, stable, infinite impulse response
y[n] = x[n] + 0.7y[n-1]
Causal, unstable, infinite impulse response
y[n] = x[n] + 1.3y[n-1]
7/17
Linear, Time Varying Systems
If the system is time varying, let h
k
[n] denote the response to
the impulse signal [n-k] (because it is time varying, the
impulse responses at different times will change).
Then from the superposition property (Lecture 6) of linear
systems, the systems response to a more general input
signal x[n] can be written as:
Input signal
System output signal is given by the convolution sum
i.e. it is the scaled sum of impulse responses

k
k
n h k x n y ] [ ] [ ] [



k
k n k x n x ] [ ] [ ] [
8/17
Example: Time Varying Convolution
x[n] = [0 0 1 1.5 0 0 0]
h
-1
[n] = [0 0 1.5 0.7 .4 0 0]
h
0
[n] = [0 0 0 0.5 0.8 1.7 0]
y[n] = [0 0 1.4 1.4 0.7 2.6 0]
9/17
Linear Time Invariant Systems
When system is linear, time invariant, the unit impulse
responses are all time-shifted versions of each other:
It is usual to drop the 0 subscript and simply define the
unit impulse response h[n] as:
In this case, the convolution sum for LTI systems is:
It is called the convolution sum (or superposition sum)
because it involves the convolution of two signals x[n]
and h[n], and is sometimes written as:
[ ] k n h n h
k

0
] [
[ ] n h n h
0
] [



k
k n h k x n y ] [ ] [ ] [
] [ * ] [ ] [ n h n x n y
10/17
System Identification and Prediction
Note that the systems response to an arbitrary input signal is
completely determined by its response to the unit impulse.
Therefore, if we need to identify a particular LTI system, we can
apply a unit impulse signal and measure the systems
response.
That data can then be used to predict the systems response to
any input signal
Note that describing an LTI system using h[n], is equivalent to a
description using a difference equation. There is a direct
mapping between h[n] and the parameters/order of a
difference equation such as:
y[n] = x[n] + 0.5x[n-1] + 0.25x[n-2]
System: h[n]
y[n] x[n]
11/17
Example 1: LTI Convolution
Consider a LTI system with the
following unit impulse response:
h[n] = [0 0 1 1 1 0 0]
For the input sequence:
x[n] = [0 0 0.5 2 0 0 0]
The result is:
y[n] = + x[0]h[n] + x[1]h[n-1] +
= 0 +
0.5*[0 0 1 1 1 0 0] +
2.0*[0 0 0 1 1 1 0] +
0
= [0 0 0.5 2.5 2.5 2 0]
12/17
Example 2: LTI Convolution
Consider the problem
described for example 1
Sketch x[k] and h[n-k] for any
particular value of n, then
multiply the two signals and
sum over all values of k.
For n<0, we see that x[k]h[n-k]
= 0 for all k, since the non-
zero values of the two
signals do not overlap.
y[0] =
k
x[k]h[0-k] = 0.5
y[1] =
k
x[k]h[1-k] = 0.5+2
y[2] =
k
x[k]h[2-k] = 0.5+2
y[3] =
k
x[k]h[3-k] = 2
As found in Example 1
13/17
Example 3: LTI Convolution
Consider a LTI system that has a step
response h[n] = u[n] to the unit
impulse input signal
What is the response when an input
signal of the form
x[n] =
n
u[n]
where 0<<1, is applied?
For n 0:
Therefore,

1
1
] [
1
0
n
n
k
k
n y
] [
1
1
] [
1
n u n y
n

,
_

14/17
Discrete LTI Convolution in Matlab
In Matlab to find out about a command, you can search the help
files or type:
>> lookfor convolution
at the Matlab command line. This returns all Matlab functions that
contain the term convolution in the basic description
These include:
conv()
To see how this works and other functions that may be appropriate,
type:
>> help conv
at the Matlab command line
Example:
>> h = [0 0 1 1 1 0 0];
>> x = [0 0 0.5 2 0 0 0];
>> y = conv(x, h)
>> y = [0 0 0 0 0.5 2.5 2.5 2 0 0 0 0 0]
15/17
Lecture 4: Summary
Any discrete LTI system can be completely determined by
measuring its unit impulse response h[n]
This can be used to predict the response to an arbitrary input
signal using the convolution operator:
The output signal y[n] can be calculated by:

Sum of scaled signals example 1

Non-zero elements of h example 2


The two ways of calculating the convolution are equivalent
Calculated in Matlab using the conv() function (but note that
there are some zero padding at start and end)



k
k n h k x n y ] [ ] [ ] [
16/17
Lecture 7: Exercises
Q2.1-2.7, 2.21
Calculate the answer to Example 3 in Matlab, Slide 14

You might also like