You are on page 1of 1

MATLAB Approach

% Digital Control Systems


% Assignment # 01
% Problem B-2-9
x=[1 zeros(1,40)];
num= [0 0.5 -1];
den= [1 -2.1 1.44 -0.32];
filter(num,den,x)
subplot(131)
stem(filter(num,den,x))
title('Plot for Problem B-2-9')
xlabel('k')
ylabel('x[k]')
% Problem B-2-10
x=[1 zeros(1,40)];
num= [0 1];
den= [1 0.3 -0.9 -0.4];
filter(num,den,x)
subplot(132)
stem(filter(num,den,x))
title('Plot for Problem B-2-10')
xlabel('k')
ylabel('x[k]')
% Problem B-2-11
x=[1 zeros(1,40)];
num= [1 1 -1];
den= [1 -1];
filter(num,den,x)
subplot(133)
stem(filter(num,den,x))
title('Plot for Problem B-2-11')
xlabel('k')
ylabel('x[k]')

Output: Columns 1 through 4


0

0.5000

0.0500

-0.6150

Output: Columns 1 through 4


0

1.0000

-0.3000

0.9900

Output: Columns 1 through 4


1

You might also like