You are on page 1of 11

Lab 7

syms n z;
y = (1+n)*heaviside(n);
yz = ztrans (y);
pretty (yz)

syms n a z;
y = ((a)^n+(a)^(-n))*heaviside(n);
yz = ztrans (y);
pretty(yz)
syms n z;
y = ((-1)^n+(2)^(-n))*heaviside(n);
yz = ztrans (y);
pretty(yz)
syms n a z w;
y = (n*(a^n)*sin(w*n))*heaviside(n);
yz = ztrans(y);
pretty(yz)
syms n;
u=heaviside(n)-heaviside(n-10);
y = ((1/2)^n)*(u);
yz = ztrans(y);
pretty(yz)
Q2

syms z
b = [1, -1, -4, 4];
a= [1, -11/4, 13/8, -1/4];
[ze,po,k] = tf2zpk(b,a);
ze
po
f= ((z+2)*(z-2)*(z-1))/((z-2)*(z-0.5)*(z-
0.25));
disp('Poles Zeros Form');
pretty(f)
x=iztrans(f);
disp('Z inverse');
pretty(x);
ze =

-2.0000
2.0000
1.0000

po =

2.0000
0.5000
0.2500

syms z
b = [1, -3, 4, 1];
a= [1, -4, 1, -0.16];
[ze,po,k] = tf2zpk(b,a);
ze
po
f= ((z-1.6067-1.4506i)*(z-
1.6067+1.4506i)*(z+0.2134-0.0000i))/((z-
3.7443-0.0000i)*(z-0.1278-0.1625i)*(z-
0.1278+0.1625i));
disp('Poles Zeros Form');
pretty(f)
x=iztrans(f);
disp('Z inverse');
pretty(x);
Q3 b

syms z
b = [1, -3, 4, 1];
a= [1, -4, 1, -0.16];
[ze,po,k] = tf2zpk(b,a);
ze
po
zplane(ze,po,'fill');
title('Poles Zeros Plane');
syms z
b = [1, -1, -4, 4];
a= [1, -11/4, 13/8, -1/4];
[ze,po,k] = tf2zpk(b,a);
ze
po
zplane(ze,po,'fill');
title('Poles Zeros Plane');
Q4

syms z
b = [5, 3, 1, 2, 1, 3, 5];
a= [1];
[ze,po,k] = tf2zpk(b,a);
ze
po
zplane(ze,po,'fill');
title('Poles Zeros Plane');

5 Poles are inside the unit circle so this system is stable at = 0, 0, 0, 0, 0

B.
syms z
b = [1, 3, 5, 3, 2, 2];
a= [1];
[ze,po,k] = tf2zpk(b,a);
ze
po
zplane(ze,po,'fill');
title('Poles Zeros Plane');

5 Poles are inside the unit circle so this system is stable at = 0, 0, 0, 0, 0

You might also like