Beruflich Dokumente
Kultur Dokumente
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
For education purpose. Commercialization of this material is strictly not allowed without permission from author.
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Signal
Definition: It is the function that describes the variation of a physical variable with respect to independent variable( time, space etc.) in a physical process. Mathematically, S=f(x) Where s is signal /function and x independent variable
Examples: 1) Change in temperature sensed by the sensor placed in boiler.
t(msec) Temp(0C) 1 29 2 31 3 35 4 45 5 45
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Contd..
2) The digital data to be sent over a transmission channel
t(msec) Digital data 0 0 1 1 2 1 3 0 4 1 5 0
Image, I=f(x,y) In this example intensity in image is the function / or signal which is dependent on independent variable spatial coordinate x and y.
10 8 1 6 6 7 7 7 14
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Contd..
4) The voltage across capacitor
V = e t / RC
5) share value fluctuation in stock market during year ( month wise)
Month Share value( Rs) Jan 200 Feb 214 Mar 214 Apr 245 May 198 Jun 200 Jul 210 Aug 200 Sep 234
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
(n) = 1 0
n = 0; n 0;
n0
n<0
r(n) = n 0
n0
n<0
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Contd..
d) Exponential function: It is expressed as as f (n) = Ae an sine function , When a ia negative when a is positive cosine function
f ( n) = a sin(n + ) f ( n) = a cos(n + )
e) Sinusoidal function
= 2f
g) Decaying/growing sinusoidal
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Signal Representation
Discrete time signals can be represented as follows
Graphical Representation x(n)
Sequence Representation
x (n) 0 1 3 2 1 2 5 2
x(n) = { 2 0 3} 1
x (4) = 0, x(3) = 0, x (2) = 1, x (1) = 3, x(0) = 2, x(1) = 1, x (2) = 2.... Functional representation
2n x (n ) = n / 2 0
10/6/2009
n 2 x( n) = 3n
n = odd n = even
9
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
Problems
Sketch following signals
1
2n x (n) = n / 2 0
n 2 x( n) = 3n
0 x ( n ) = 2 n 3 5 n
n = odd n = even
n2 2n4 n>4
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
10
Signal Operations
Addition/Subtraction corresponding samples from both signals would be added, subtracted Amplitude Scaling- each sample of the signal would be scaled by scaling factor Delaying Advancing Time reversing Rate Changing
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
11
Delaying- Advancing
4
Original signal
x(n) 2 1 0
x(n)
n
Delaying
x(n) 2 1 0 3
x(n-1)
Advancing
4 x(n) 2 1 0 n 3
x(n+1)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
12
Time Reversing
4
Original signal
x(n) 2 1 0 4 3 2 1 0 4 x(n)
x(n)
n
Time Reversed
x(-n)
n
TR & Delaying
3 2
x(n)
x(-n+1)
1 0 n
TR & Advancing
3 2 1
x(n)
x(-n-1)
n
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
13
Rate Changing
Rate changing Multirate Signal Processing
changing the sampling rate of signal
4
Original signal
x(n) 2 1 0
x(n)
n
Up sampling
x(n) 2 1 0
x(n/2)
n
Down sampling
x(n)
x(2n)
1 0 n
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
14
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
15
Signal Classification
Periodic and Aperiodic Signals Even and Odd signals Energy and Power signal Deterministic and stochastic signal
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
16
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
17
Calculation of Periodicity
Sum of two or more periodic signals is also a periodic signal If xa[n] and xb[n] are two periodic singals with funfadmental period Na and Nb respectively, then singal y[n]=xa[n]+xb[n] is a periodic singal with fundamental period N given by N= Na*Nb/(GCD(Na,Nb) where GCD greatest common divisor of Na & Nb
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
18
0 n
x( n) = xeven ( n) + xodd ( n)
where
xeven = x ( n) + x ( n ) 2
and
xodd =
x ( n ) x ( n) 2
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
19
n= N
x ( n)
The signal x(n) is said to be an power signal if its power, as calculated by following equation , is finite and non-zero.
N 1 2 Power = lim x ( n) N N 2 N + 1 n=
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
20
Problem(1)
identify signals if it is power or energy signal n a) u(n) b) 0.5 u(n)
a)
E=
n =
x(n) = 12 =
0
We know ,
a N1 a N 2 +1 a = 1 a n = N1
N2 n
where
a 1
Power signal
= 12
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
21
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
22
Solution
E= =
x ( n)
n =
= 0.5 = 0.25
2 0 0
1 0 1 4 = = 1 0.25 0.75 3
We know , Energy signal
an =
n = N1 N2
a N1 a N 2 +1 1 a
where
a 1
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
23
Quiz
1. Sketch
x (n) = ( n k )
k =0
2. Can step sequence be represented in terms of impulses? If yes how? 3. Signal is to be down sampled by a factor of 2.5. Is it possible? If yes ,how? 4. Verify odd-even signal equation for the signal x(n)={1 2 3 4} 5 Given DTS as
x ( n) = 1 3 2 1 2 2 3 2
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
24
System
Definition System is device that follows unique relationship between excitation and response( input and output) A discrete-time system is essentially an algorithm for converting one sequence (called the input) into another sequence (called the output)
x(n) y(n) y(n)=f[x(n)] f[.] denotes the specific system
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
25
Examples of system
Differentiator y(n)= x(n)-x(n-1)
2
x( n m) y ( n) = 0
n = multiplesofM otherwise
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
26
System Representation
Impulse response (in time domain) h[n]={1 -1} , h[n]= { 1 0.8 0.54 0.24 0.006} Relation between input and output as seen in system examples Difference equation y[n]= x[n]- x[n-1] , y[n]= y[n-1] + ax[n] +bx[n-2] Transfer function( in z-domain) H(z)= 1/(z+1)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
27
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
28
System Classification
Continuous /discrete time systems Time variant/invariant systems Memory less/memory systems( Static/dynamic system) Causal/anti-causal/non-causal system Linear/non-linear systems Lumped/distributed-parameter systems Stable/unstable systems Invertible and non-invertible systems
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
29
If the system process DTS, then system is said to be discrete time system. e.g. Digital adder
Is there any application which exist only in digital and not in analog ?
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
30
Lumped/distributed-parameter systems
If the component used in system has identical values of physical parameters( current, voltages etc) throughout its area and can be considered as a single point (node) in the system , it is called as lumped parameter system e.g normal components like resistor, capacitor in low frequency applications etc If the component used in system has different values of physical parameters ( current, voltages etc) throughout its area and cannot be considered as a single point (node) in the system , it is called as lumped parameter system E.g. transmission lines, microwave tubes which normally used in high frequency
V1 V1 V1 V1
V1 V2 V3 V4
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
31
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
32
Causal/anti-causal/non-causal system
A system for which the output at any instatnt depends only on the past or present values of the input( not on future samples) is called as causal system y(n)= n*x(n) , y(n)=x(n) +x(n-1)
A system for which the output at any instatnt depends also on future values of the iput , is called as non-causal system e.g. y(n)=x(n2 ) , y(n)=x(-n) , y(n)=x(n)+x(n+1)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
33
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
34
Stable/unstable systems
The system is said to be stable if any bounded input signal results in bounded output signal -an bounded signals u(n) , e
The system is said to be unstable if the system gives unbounded output signal in response to bounded input signal unbounded signals r(n) , n*u(n)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
35
Invertible/non-invertible systems
The system whose output can be used to determine input uniquely and exactly, is called as invertible system. e.g. y=2x
but y=x2 is not an invertible system as it would give two possible inputs ( +ve and ve) Hence , system defined by y=x2 is non-invertible system
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
36
X1(n) X2(n)
X1(n)
H H
+
b
Y(n)
+
b
Y(n)
X2(n)
If system holds superposition property , it is called as linear system if system violates superposition property, it is called as nonlinear system
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
37
Problems
1) y(n)=nx(n) y1(n)=nx1(n) y2(n)= nx2(n) ay1(n)+by2(n)= nax1(n)+ nbx2(n) =n[ax1(n)+bx2(n)] ..A H[ax1(n)+bx2(n)] = n[ax1(n)+bx2(n)] ..B A=B Linear system 2) y(n)=x2(n) y1(n)=x12(n) y2(n)=x22(n) ay1(n)+by2(n)=ax12(n)+bx22(n) .A
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
38
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
39
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
40
Contd..
X(n)
Shift by a
y(n-a)
X(n)
Shift by a
y(n-a)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
41
Problems
1) Y(n)=x(n)+ x(n-1) o/p of delayed input by k i.e. y(n,k)=x(n-k)+x(n-1-k) Delayed o/p by k Y(n-k)= x(n-k)+x(n-k-1) Y(n,k)=y(n-k) System is time-invariant 3) Y(n)=x(-n) o/p of delayed input by k i.e. y(n,k)=x(-n-k) as x(n) x(n-k) Delayed o/p by k Y(n-k)= x(-(n-k))=x(-n+k) Y(n,k)=y(n-k)
10/6/2009
2)Y(n)=nx(n) o/p of delayed input by k i.e. y(n,k)=nx(n-k) Delayed o/p by k Y(n-k)= (n-k)x(n-k) Y(n,k) !=y(n-k) System is time-variant
x(-n-k)
System is time-variant
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
42
where {ak} and {bk} are constant parameters that specify the system and are independent of x(n) and y(n)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
43
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
44
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
45
Convolution
Definition: It is the tool or operation to determine the response of the LTI system Convolution between two DT signals x(n) and h(n) is expressed as
y ( n) = h( n) * x ( n)
k =
h( n k ) x ( k ) h( k ) x ( n k )
k =
or =
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
46
Properties of Convolution
h(n) * x(n) = x(n)*h(n) h(n)* [ax(n)] = a [h(n)*x(n)] where a is constant h(n)*[x1(n)+x2(n)]=h(n)*x1(n)+h(n)*x2(n) h(n)*[x1(n)*x2(n)]=[h(n)*x1(n)]*x2(n)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
47
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
48
Contd..
x( n) = [ 2 1 1 0 3]
h(k) x(k)
h( n) = [1 2 1]
h(-k)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
49
Contd..
Shift by 0 to get y(0)
h(-k)
x(k)
4 1 0 0 0 = 5 = y(0)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
50
Contd..
Shift by -1 to get y(-1)
h(-1-k)
x(k)
0 0 2 0 0 0 0 = 2 = y(-1)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
51
Contd..
Shift by -2 to get y(-2)
h(-2-k)
x(k)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
52
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
53
Contd..
Shift by 1 to get y(1)
h(1-k)
x(k)
-2 2 -1 0 0 = -1 = y(1)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
54
Contd..
Shift by 2 to get y(2)
h(2-k)
x(k)
0 -1 -2 0 0 = -3 = y(2)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
55
Contd..
Shift by 3 to get y(3)
h(3-k)
x(k)
0 0 1 0 -3 = -2 = y(3)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
56
Contd..
Shift by 4 to get y(4)
h(4-k)
x(k)
0 0 0 0 -6 = -6 = y(4)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
57
Contd..
Shift by 5 to get y(5)
h(5-k)
x(k)
0 0 0 0
3 = 3 = y(5)
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
58
Contd..
Shift by 6 to get y(6)
h(6-k)
x(k)
0 0 0 0
0 0
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
59
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
60
Contd..
x( n) = [ 2 1 1 0 3]
h(k) x(k)
h( n) = [1 2 1]
y (n) = [2 5 1 3 2 6 3]
length (x)= N1=3 length (h)= N2=5 Thus, length (y)= N1+N2-1=7
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
61
h( n) = [1 2 1]
x(n) h(n)
2 1 1 0 3 2 4 2 2 0 6 1 2 1 1 0 3
5
y (n ) = [2
3]
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
62
Problems
Compute convolution for the following signals:
A)
x(n) = [1 3 2 1]
h(n) = [1 1] h(n) = [1 1]
B) x(n) = [1 2 3 4 5] C) x(n) = [2 1 3 2 1]
h(n) = [4 3 2 1]
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
63
Correlation
The cross-correlation of x(n) and y(n) is given by
rxy (l ) =
x ( n) y ( n l )
n =
or
rxy (l ) =
x ( n + l ) y ( n)
n =
for
l = 0,1,2,3....
If signal x(n) and y(n) are same i.e. y(n)=x(n), then auto-correlation is given by
rxx (l ) =
for
x ( n) x ( n l )
n =
l = 0,1,2,3....
rxy (l ) = ryx (l )
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
64
Contd..
Computation of correlation is same as computation of convolution without folding operation e.g.
x (n) = [2 1 3 7 1 2 3]
y (n) = [1 1 2 2 4 1 2
5]
2
10 -4 2 8 -4 4 -2 2
1
-5 2 -1 -4 2 -2 1 -1
3
15 -6 3 12 -6 -6 -3 3
7
35 -14 7 28 -14 14 -7 7
2
10 -4 2 8 -4 4 -2 2
3
-15 6 -3 -12 6 -6 3 -3
rxy=[ 10 -9 19 36 -14 33 0 7 13 -18 16 -7 5 -3]
5 2 1 4 2 2 1 1
5 -2 1 4 -2 2 -1 1
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
65
e-TECHNote
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
66
Quiz
Find the output of the system if input x(n) and impulse response h(n) are given by ( May 2003, 4 marks) x ( n) = 1 n = 2,0,1 h( n) = ( n) (n 1) + (n 2) ( n 3) =2 n = 1 =0 otherwise Determine the autocorrelation of the following signals (Dec 97 , 5 marks)
i) x(n)={ 1 2 1 1} ii) y(n)= { 1 1 2 1} What is your conclusion?
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
67
End of Chapter 01
Queries ???
10/6/2009
Watumull Institute of Technology, Worli Prepared by Chandrashekhar Padole, DSP-BE Computer, Mumbai Uni
68