Correlation of Discrete-Time Signals
Correlation of Discrete-Time Signals
Correlation of Discrete-Time Signals
Signals
Reflected Signal,
y(n) = x(n-D) + w(n)
0 T
Cross-Correlation
• Cross-correlation
of x(n) and y(n) is a sequence, rxy(l)
rxy l x n y n l
n
l 0, 1, 2,
rxy l x n l y n
n
l 0, 1, 2,
rxy l x l y l ryx l y l x l
• In Matlab:
– Conv(x,fliplr(y))
Auto-Correlation
• Correlation of a signal with itself
rxx l x n x n l r l
n
xx l 0, 1, 2,
ax n by n l
2
Ez
n
a 2
x n b y n l 2ab x n y n l
n
2 2
n
2
n
Maximum value occurs with zero lag (when signals are perfectly matched)
Often normalized to range [-1,1]:
rxy l rxx l
xx l xx l
rxx 0 ryy 0 rxx 0
x n a nu n ; 0 a 1
rxx l x n x n l
n
a a n n l
a l
a 2n
n l n l
1
l0
l
a
1 a2
rxx l
xx l a
l
l
rxx 0
Periodic Sequences
• Power signals crosscorrelation:
M
1
r l lim
xy
M 2M 1
n M
x n y n l
h l x l x l
h l rxx l
ryy 0 rhh 0 rxx 0 r k r k
k
hh xx