%Experiment No.7
%Aim: To study and perform magnitude and phase response of LTI discrete
%time system using Z Transform
%Name: Anurag R Kados
%Roll NO.: EC2162
%Batch No.: A-5
%Experiment No.7
%Aim: To Study and perform magnitude and phase response of LTI Discrete
%time System using Z transform
%Name: Anurag R Kados
%Roll NO.: EC2162
%Batch No.: A-5
%Class: SY-A
syms n;
a=2;
x=a^n;
X=ztrans(x);
disp('Z Transform of a^n a>1');
disp(X);
syms n;
a=0.5;
x=a^n;
X1=ztrans(x);
disp('Z Transform of a^n 0<a<1');
disp(X1);
syms n;
a=2;
x=1+n;
X2=ztrans(x);
disp('Z Transform of 1+n');
disp(X2);
A=iztrans(X);
disp('Inverse Z Transform of a^n a>1');
disp(A);
B=iztrans(X1);
disp('Inverse Z Transform of a^n 0<a<1');
disp(B);
C=iztrans(X2);
disp('Inverse Z Transform of 1+n');
disp(C);
subplot(1,3,1);
zplane([1 0],[1 -2]);
subplot(1,3,2);
zplane([1 0],[1 -1/2]);
subplot(1,3,3);
zplane([1 0 0],[1 -2 1]);
Z Transform of a^n a>1
z/(z - 2)
 
Z Transform of a^n 0<a<1
z/(z - 1/2)
 
Z Transform of 1+n
z/(z - 1) + z/(z - 1)^2
 
Inverse Z Transform of a^n a>1
2^n
 
Inverse Z Transform of a^n 0<a<1
(1/2)^n
 
Inverse Z Transform of 1+n
n + 1