Professional Documents
Culture Documents
Lecture – 3 Objectives
xn yn
Discrete-Time
System
xn yn
Discrete-Time
System
hk
k 0
Block diagram of a
simple recursive
system
yn ayn 1 xn
y 0 ay 1 x0
y 1 ay 0 x1 a 2 y 1 ax0 x1
y 2 ay 1 x2 a 3 y 1 a 2 x0 ax1 x2
:
y n a n 1 y 1 a n x0 a n 1 x1 a n 2 x2 axn 1 xn
n
a n 1 y 1
k 0
a k xn k , n0
M 1
y n hk xn k
k 0
y n hk xn k
k 0
Solution:
(2)
y1 n x12 n and y2 n x22 n
A linear combinatio n of the two input sequences results in the output
y3 n La1 x1 n a2 x2 n a1 x1 n a2 x2 n
2
x 1 n 1 x 0 n 0 x 2 n 2
2 n 1 n 3 n 2
h4 k 0,0,1,1,2,1 y 4 xk h4 k 0 0 3 1 2
k
h5 k 0,0,0,1,1,2,1 y 5 xk h5 k 0 0 0 1 1
k
h 1 k 1,1,2,1 y 1 1 yn 0 for n 5 and n 1
y n xk hn k
k
,0,0,1,4,8,8,3,2,1,0,0,
IUB Dr. Abdur Razzak 19
Example-5 ECR305_L3
Determine the unit step response for the LTI system with impulse
response h(n) = anu(n). Also determine the condition in order to
be the system stable.
Solution: 1 for n 0
Given that xn u n
0 for n 0
So
y n u k hn k a n k
n
k k 0
n 1
yn 1 a a 2 a n
For n > 0 1 a
1 a
For n < 0 yn 0
in order to be system stable a 1
IUB Dr. Abdur Razzak 20
Crosscorrelation ECR305_L3
The special case of above relation when x(n) and y(n) is called
the autocorrelation and is defined by
rxx l xn xn l
n
rxx l xn l xn
n
ryy l y n y n l
n
ryy l y n l y n
n
xn 1, 2, 4 and y n 1 0, 1, 1, 1, 1
rxy 1 xn y n 1 0 2 4 0 0 6
n
xn 1, 2, 4 and y n 2 0, 0, 1, 1, 1, 1
IUB Dr. Abdur Razzak 23
Example-6 (contd..) ECR305_L3
rxy 2 xn y n 2 0 0 4 0 0 0 4
xn 1, 2, 4
n
and
rxy 1 xn y n 1 0 1 2 4 0 7
y n 1, 1, 1, 1 n
xn 1, 2, 4 and y n 1, 1, 1, 1
xn 1, 2, 4 and rxy 2 xn y n 2 0 0 1 2 0 0 3
n
y n 1, 1, 1, 1 rxy 3 xn y n 3 0 0 0 1 0 0 1
n
rxy l , 0,1,3, 7, 7, 6, 4, 0,
a yn k b xn m
k 0
k
m 0
m
y n y zi n y zs n
zero input response zero - state response
IUB Dr. Abdur Razzak 26
Assignment-3 (due on next class) ECR305_L3
MATLAB
Examples
y filter(b, a, x)
b [b 0, b 1,.......,bM);
a [a 0, a 1,.......,aN);
h impz (b, a, n)
% Definition
n = -10:50; x = stepseq(0,-10,50)-stepseq(10,-10,50); h = ((0.9).^n).*(stepseq(0,-10,50));
% Calculation
y = conv(x,h);
%Plot
subplot(3,1,1);
stem(n,x); title('Rectangular pulse','fontsize',15); ylabel('x(n)','fontsize',15); axis([-10 50 0 1.5]);
subplot(3,1,2);
stem(n,h); title('Impulse response','fontsize',15); ylabel('h(n)','fontsize',15); axis([-10 50 0 1.5]);
subplot(3,1,3);
m = -10:0.5:50; stem(m,y); title('Output sequence','fontsize',15); axis([-10 50 0 10]);
xlabel('n','fontsize',15); ylabel('y(n)','fontsize',15);
subplot(2,1,1)
stem(n,h);
title('Impulse response'); ylabel('Value of h(n)');
subplot(2,1,2)
stem(n,s);
title('Step response'); xlabel('Value of n'); ylabel('Value of s(n)');
The z-transform