unit - 1

46
Unit - 1 Fall 2015

Upload: vimala-elumalai

Post on 05-Jan-2016

214 views

Category:

Documents


0 download

DESCRIPTION

DSP

TRANSCRIPT

Page 1: Unit - 1

Unit - 1

Fall 2015

Page 2: Unit - 1

Signals - Introduction Signal: Anything that carries some information can be called as

signal. A signal is also defined as any physical quantity that

varies with time, space or any other independent variable

or variables. Eg: 𝑠1 𝑑 = 5𝑑 𝑠2 𝑑 = 20𝑑2

Examples of signals:

1. Speech signal

2. ECG signal

Page 3: Unit - 1

Types of signals Types:

1. Continuous time signals

2. Discrete time signals

Page 4: Unit - 1

Continuous Signal or Analog Signal

Eg 1: ECG signal

Analog Signals are defined for all time values

0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04-10

-8

-6

-4

-2

0

2

4

6

8

10x(t) Vs time t

time t in Seconds

valu

e of

x(t)

Amplitude=10, frequency =341.4 rad /sec. or 50Hz

Eg 2: π‘₯(𝑑) = 10𝐢𝐢𝑠(2 βˆ— 𝑝𝑝 βˆ— 50 βˆ— 𝑑) β‰ˆ 10𝐢𝐢𝑠(341.4𝑑)

Page 5: Unit - 1

Discrete Signals

Defined for only discrete values of time

8a.m 9 a.m 10a.m 11a.m 12 a.m

20o C 22o C 25o C 25o C 25o C

Eg: value of temperature measured at every hour inside a room.

Page 6: Unit - 1

Basic Sequences

β€’ Unit sample (impulse) sequence

β€’ Unit step sequence

β€’ Exponential sequences

=β‰ 

=Ξ΄0n10n0

]n[

β‰₯<

=0n10n0

]n[u

nA]n[x Ξ±=

-10 -5 0 5 10 0

0.5

1

1.5

-10 -5 0 5 10 0

0.5

1

1.5

-10 -5 0 5 10 0

0.5

1

Page 7: Unit - 1

Discrete time signals: Sequences

A discrete – time signal π‘₯[n] is a function of an independent variable that is

an integer.

Representation of discrete time signals:

1. Functional representation:

π‘₯[𝑛] = οΏ½1, 𝑓𝐢𝑓 𝑛 = 1,34, 𝑓𝐢𝑓 𝑛 = 20, 𝑒𝑒𝑠𝑒 𝑀𝑀𝑒𝑓𝑒

2. Tabular representation:

n …. -2 -1 0 1 2 3 4 5 ….

x[n] …. 0 0 0 1 4 1 0 0 ..

Page 8: Unit - 1

Discrete time signals: Sequences 3. Sequence representation:

An infinite – duration signal or sequence with the time origin

𝑛 = 0 indicated by symbol ↑ is represented as

π‘₯[𝑛] = … … . 0, 0, 1, 4, 1, 0, 0, … … .↑

A sequence x(n), which is zero for 𝑛 < 0, can be represented as

π‘₯[𝑛] = 0, 1, 4, 1, 0, 0, … … .↑

4. Graphical representation:

Page 9: Unit - 1

Simple Manipulations of discrete time Signals

When a signal is processed, the signal undergoes many manipulations

involving both the independent and dependent variable. Some of

these are:

β€’ Folding

β€’ Shifting

β€’ Time scaling

Page 10: Unit - 1

Folding:

This operation is done by replacing the independent variable

β€˜n’ by β€˜-n’

Shifting:

A signal π‘₯[𝑛] may be shifted in time i.e; the signal can be

either advanced in time axis or delayed in time axis. The

shifted signal is represented by π‘₯[𝑛 βˆ’ π‘˜], where β€˜k’ is an

integer.

β€’ If β€˜k’ is posotive, the signal is delayed by β€˜k’ units.

β€’ If β€˜k’ is negative, the signal is advanced by β€˜k’ units.

Scaling:

This involves to replace the independent variable β€˜n’ by β€˜kn’,

where β€˜k’ is an integer. Scaling compresses or dilates a signal.

Page 11: Unit - 1

Problem: 1

A discrete time signal π‘₯ 𝑛 is shown in Figure. Sketch and label each of

the following signals.

(a) π‘₯(𝑛 βˆ’2) (b) π‘₯(2𝑛) (c) π‘₯(βˆ’π‘›) (d) π‘₯(βˆ’π‘› + 2)

Page 12: Unit - 1

Problem:2

A discrete – time signal π‘₯ 𝑛 is defined as

π‘₯ 𝑛 = οΏ½1 + 𝑛

3 , βˆ’3 ≀ 𝑛 ≀ βˆ’1

1, 0 ≀ 𝑛 ≀ 30 , 𝑒𝑒𝑠𝑒𝑀𝑀𝑒𝑓𝑒

a) Determine its values and sketch the signal π‘₯ 𝑛 .

b) Sketch the signals that result if we:

(i) First fold π‘₯ 𝑛 and then delay the resulting signal by four samples.

(ii) First delay π‘₯ 𝑛 by four samples and then fold the resulting signal.

c) Sketch the signal π‘₯ βˆ’π‘› + 4 .

d) Compare the results in parts Q1(b) and (c) and derive a rule for obtaining the

signalπ‘₯ βˆ’π‘› + 4 from π‘₯ 𝑛 .

e) Express the signal π‘₯ 𝑛 in terms of 𝛿 𝑛 and 𝑒 𝑛

Page 13: Unit - 1

Basic operations on Signals

The basic set of operations are

β€’ Addition

β€’ Multiplication

β€’ Scaling of sequences

Amplitude scaling of a signal by a constant A is accomplished by

multiplying the value of every signal sample by A.

𝑦 𝑛 = 𝐴π‘₯ 𝑛 βˆ’βˆž < 𝑛 < ∞

The sum of two signals π‘₯1 𝑛 π‘Žπ‘›π‘Ž π‘₯2 𝑛 is a signal y(n), whose value at

any instant is equal to the sum of the values of those two signals at

that instant.

𝑦 𝑛 = π‘₯1 𝑛 + π‘₯2 𝑛 , βˆ’βˆž < 𝑛 < ∞

Page 14: Unit - 1

Basic operations on Signals

The product of two signals π‘₯1 𝑛 π‘Žπ‘›π‘Ž π‘₯2 𝑛 is a signal y(n), whose value

at any instant is equal to the product he values of those two signals at

that instant.

𝑦 𝑛 = π‘₯1 𝑛 π‘₯2 𝑛 , βˆ’βˆž < 𝑛 < ∞

Page 15: Unit - 1

Problem: 3

Using the discrete – time signal π‘₯1 𝑛 π‘Žπ‘›π‘Ž π‘₯2 𝑛 shown in Figure represent

each of the following signals by a graph and by a sequence of numbers.

a) 𝑦1 𝑛 = π‘₯1 𝑛 + π‘₯2 𝑛

b) 𝑦2 𝑛 = 2 π‘₯1 𝑛

c) 𝑦3 𝑛 = π‘₯1 𝑛 π‘₯2 𝑛

Page 16: Unit - 1

Some basic building blocks are used to represent a discrete time

systems.

1. An adder

2. A Constant Multiplier

3. A signal multiplier

4. A unit delay element

5. A unit advance element

Block Diagram Representation of Discrete Time Systems

An adder: A Constant Multiplier:

π‘₯(𝑛) a 𝑦 𝑛 = π‘Žπ‘₯(𝑛) +

π‘₯1(𝑛)

π‘₯2(𝑛)

𝑦 𝑛 = π‘₯1 𝑛 + π‘₯2(𝑛)

Page 17: Unit - 1

Signal Processing is a method of extracting

information from the signal which in turn

depends on the type of signal and the nature of

information it carries.

Signal Processing

Page 18: Unit - 1

What is a system?

A system is formally defined as an entity that manipulates one or

more signals to accomplish a function, thereby yielding new signals.

system output signal

input signal

Page 19: Unit - 1

Some Interesting Systems Communication system

Page 20: Unit - 1

Control systems

Remote sensing system

Perspectival view of Mount Shasta (California), derived from a pair of stereo radar images acquired from orbit with the shuttle Imaging Radar (SIR-B).

(Courtesy of Jet Propulsion Laboratory.)

Page 21: Unit - 1

Biomedical system(biomedical signal processing)

Page 22: Unit - 1

Classification of discrete time systems

𝑦 𝑛 β†’ Ξ€ π‘₯(𝑛)

Common system properties:

Static VS Dynamic

Time - invariant VS Time – variant

Linear VS Nonlinear

Casual VS Non-causal

Stable VS unstable

Page 23: Unit - 1

Classification of discrete time systems

Why is this so important?

mathematical techniques developed to analyze systems are often

contingent upon the general characteristics of the systems being

considered.

For a system to possess a given property, the property must hold for

every possible input signal to the system.

Page 24: Unit - 1

Classification of discrete time systems

Static Vs Dynamic Systems

A discrete-time system is called static or memory less if its output at any instant β€˜n’

depends at most on the input sample at the same time, but not on past or future

samples of the input. Otherwise the system is dynamic.

A system is static, if and only if

𝑦 𝑛 = Ξ€ π‘₯ 𝑛

Example:

Determine whether the following systems are static or dynamic:

a) 𝑦 𝑛 = π‘₯ 𝑛 π‘₯ 𝑛 βˆ’ 1

b) 𝑦 𝑛 = π‘₯2 𝑛 + π‘₯(𝑛)

Page 25: Unit - 1

Classification of discrete time systems

Time – invariant vs Time – variant Systems Time-invariant system: input-output characteristics do not change with

time

A system is time-invariant if

π‘₯ 𝑛 ⟢ 𝑦 𝑛 β‡’ π‘₯ 𝑛 βˆ’ π‘˜ ⟢ 𝑦(𝑛 βˆ’ π‘˜)

For every inputπ‘₯ 𝑛 and every time shift k

Ξ€ Ξ€

Example: Determine if the system shown in Figure is time-invariant or time –

variant.

Page 26: Unit - 1

Classification of discrete time systems

Linear vs Nonlinear Systems Linear system: obeys superposition principle

A system is said to be linear if

Ξ€ π‘Ž1π‘₯1 𝑛 + π‘Ž2π‘₯2 𝑛 = π‘Ž1Ξ€ π‘₯1 𝑛 + π‘Ž2Ξ€[π‘₯2 𝑛 ]

For any arbitrary input sequence π‘₯1 𝑛 π‘Žπ‘›π‘Ž π‘₯2 𝑛 , and any arbitrary

conditions π‘Ž1 π‘Žπ‘›π‘Ž π‘Ž2

Example:

Determine whether the following systems are linear or non linear:

a) 𝑦 𝑛 = π‘₯ 𝑛 + 1π‘₯ π‘›βˆ’1

b) 𝑦 𝑛 = π‘₯2 𝑛

c) 𝑦 𝑛 = 𝑛π‘₯(𝑛)

Page 27: Unit - 1

Classification of discrete time systems

Casual vs Non-casual Systems Causal system: output of system at any time n depends only on present

and past inputs

A system is said to be casual if

𝑦 𝑛 = Ξ€ π‘₯ 𝑛 , π‘₯ 𝑛 βˆ’ 1 , π‘₯ 𝑛 βˆ’ 2 … … … . .

For all n

Example:

Test whether the following systems are causal or non causal:

a) 𝑦 𝑛 = 𝐴π‘₯ 𝑛 + 𝐡

b) 𝑦 𝑛 = π‘Žπ‘₯ 𝑛 + 𝑏π‘₯(𝑛 βˆ’ 1)

Page 28: Unit - 1

Classification of discrete time systems

Stable vs Unstable Systems Bounded input –Bounded output (BIBO) stable: every bounded input

produces a bounded output

A system is BIBO stable if

π‘₯ 𝑛 ≀ 𝑀π‘₯ < ∞ ⟹ 𝑦 𝑛 ≀ 𝑀𝑦 < ∞

for all n

Page 29: Unit - 1
Page 30: Unit - 1

Block Diagram Representation of Discrete Time Systems

A signal Multiplier:

A unit Delay:

+ π‘₯1(𝑛)

π‘₯2(𝑛)

𝑦 𝑛 = π‘₯1 𝑛 π‘₯2(𝑛)

π‘₯(𝑛) 𝑦 𝑛 = π‘₯(𝑛 βˆ’ 1) π‘§βˆ’1 π‘₯(𝑛) 𝑦 𝑛 = π‘₯(𝑛 + 1)

𝑧

A unit Advance:

Page 31: Unit - 1

Problem: 4

Using basic building blocks, sketch the block diagram representation of the

discrete – time system described by the input-output relation.

𝑦 𝑛 =14𝑦 𝑛 βˆ’ 1 +

12π‘₯ 𝑛 +

12π‘₯(𝑛 βˆ’ 1)

Page 32: Unit - 1

Impulse Response

T [ ] x(n)=Ξ΄(n)

h(n)=T[Ξ΄(n)]

0 0

0 0 5 5

Ξ΄(n) h(n)

Ξ΄(n-5) h(n-5)

Page 33: Unit - 1

Convolution Sum

)(*)()()()( nhnxknhkxnyk

=βˆ’= βˆ‘βˆž

βˆ’βˆž=

convolution

T [ ] Ξ΄(n) h(n)

x(n) y(n)

A linear shift-invariant system is completely characterized by its impulse response.

Page 34: Unit - 1

Characterize a System

h(n) x(n) x(n)*h(n)

Page 35: Unit - 1

Useful equations to compute convolution

35

For geometric series

For arithmetic series

Page 36: Unit - 1

Example

0 1 2 3 4 5 6

)()()( Nnununx βˆ’βˆ’=

<β‰₯

=000

)(nna

nhn

y(n)=? 0 1 2 3 4 5 6

Page 37: Unit - 1

Example

)()()(*)()( knhkxnhnxnyk

βˆ’== βˆ‘βˆž

βˆ’βˆž=

0 1 2 3 4 5 6 k

x(k)

0 1 2 3 4 5 6 k h(k)

0 1 2 3 4 5 6 k h(0βˆ’k)

Page 38: Unit - 1

Example )()()(*)()( knhkxnhnxny

kβˆ’== βˆ‘

∞

βˆ’βˆž=

0 1 2 3 4 5 6 k

x(k)

0 1 2 3 4 5 6 k h(0βˆ’k)

0 1 2 3 4 5 6 k h(1βˆ’k)

compute y(0)

compute y(1)

How to computer y(n)?

Page 39: Unit - 1

Example

)()()(*)()( knhkxnhnxnyk

βˆ’== βˆ‘βˆž

βˆ’βˆž=

0 1 2 3 4 5 6 k

x(k)

0 1 2 3 4 5 6 k h(0βˆ’k)

0 1 2 3 4 5 6 k h(1βˆ’k)

compute y(0)

compute y(1)

How to computer y(n)?

Two conditions have to be considered.

n<N and nβ‰₯N.

Page 40: Unit - 1

Example )()()(*)()( knhkxnhnxny

kβˆ’== βˆ‘

∞

βˆ’βˆž=

1

1

1

)1(

00 111)( βˆ’

βˆ’

βˆ’

+βˆ’

=

βˆ’

=

βˆ’

βˆ’βˆ’

=βˆ’

βˆ’=== βˆ‘βˆ‘ a

aaa

aaaaanynn

nn

k

knn

k

kn

n < N

n β‰₯ N

11

1

0

1

0 111)( βˆ’

βˆ’

βˆ’

βˆ’βˆ’

=

βˆ’βˆ’

=

βˆ’

βˆ’βˆ’

=βˆ’βˆ’

=== βˆ‘βˆ‘ aaa

aaaaaany

NnnNn

N

k

knN

k

kn

Page 41: Unit - 1

Example )()()(*)()( knhkxnhnxny

kβˆ’== βˆ‘

∞

βˆ’βˆž=

1

1

1

)1(

00 111)( βˆ’

βˆ’

βˆ’

+βˆ’

=

βˆ’

=

βˆ’

βˆ’βˆ’

=βˆ’

βˆ’=== βˆ‘βˆ‘ a

aaa

aaaaanynn

nn

k

knn

k

kn

n < N

n β‰₯ N

11

1

0

1

0 111)( βˆ’

βˆ’

βˆ’

βˆ’βˆ’

=

βˆ’βˆ’

=

βˆ’

βˆ’βˆ’

=βˆ’βˆ’

=== βˆ‘βˆ‘ aaa

aaaaaany

NnnNn

N

k

knN

k

kn

0

1

2

3

4

5

0 5 10 15 20 25 30 35 40 45 50

Page 42: Unit - 1

Convolution computation in tabular

form

Page 43: Unit - 1

Problem: 5

Compute the convolution 𝑦(𝑛) of the signals by tabulation method.

π‘₯ 𝑛 = 1, 1, 0, 1, 1↑ and 𝑀 𝑛 = 1,βˆ’2,βˆ’3, 4

↑

Solution:

The values of π‘₯ 𝑛 π‘Žπ‘›π‘Ž 𝑀 𝑛 π‘π‘Žπ‘› 𝑏𝑒 𝑀𝑓𝑝𝑑𝑑𝑒𝑛 π‘Žπ‘  𝑓𝐢𝑒𝑒𝐢𝑀𝑠:

𝒙 βˆ’πŸ = 𝟏 𝒉 βˆ’πŸ‘ = 𝟏

𝒙 βˆ’πŸ = 𝟏 𝒉 βˆ’πŸ = βˆ’πŸ

𝒙 𝟎 = 𝟎 𝒉 βˆ’πŸ = βˆ’πŸ‘

𝒙 𝟏 = 𝟏 𝒉 𝟎 = πŸ’

𝒙 𝟐 = 𝟏

Page 44: Unit - 1
Page 45: Unit - 1
Page 46: Unit - 1

Do by yourself

Determine the convolution 𝑦(𝑛) of the signals by analytical method.

π‘₯ 𝑛 = οΏ½13𝑛, 0 ≀ 𝑛 ≀ 6

0, 𝑒𝑒𝑠𝑒𝑀𝑀𝑒𝑓𝑒

𝑀 𝑛 = οΏ½1, βˆ’2 ≀ 𝑛 ≀ 2 0, 𝑒𝑒𝑠𝑒𝑀𝑀𝑒𝑓𝑒