Sunteți pe pagina 1din 3

To find the inverse Z transform of

%X(Z)=z/(3z2-4z+1) clc; %Clear the command window %Accepting the coefficients of the equation. b=input('Enter the numerator coefficients->') a=input('Enter the denominator coefficients->') %Displaying the Z transform for the given coefficients [r,p,k] = residuez(b,a); disp('Residues for the given Z transform will be') disp(r) disp('Poles for the given Z transform will be') disp(p) COMMAND WINDOW OUTPUT::

Enter the numerator coefficients->[0 1]

b= 0 1

Enter the denominator coefficients->[3 -4 1] a = 3 -4 1

Residues for the given Z transform will be 0.5000 -0.5000 Poles for the given Z transform will be 1.0000 0.3333

CODE FOR POLE ZERO %Program to plot the pole zero diagram for %X(Z)=(1-(1/2z))/(1+(1/z)+(2/z2)+(3/z3) clc; b=input('Enter the numerator coefficients->') a=input('Enter the denominator coefficients->') %Displaying the Z transform for the given coefficients z=tf(b,a); disp(z) [z,p,k] = tf2zpk(b,a); disp('Poles for the given Z transform will be') disp(p) disp('Zeros for the given Z transform will be') disp(z) zplane(z,p) xlabel('Real axis') ylabel('Imag axis') title('POLE ZERO PLOT') COMMAND WINDOW OUTPUT:: Enter the numerator coefficients->[1 -2] b= 1 -2

Enter the denominator coefficients->[1 1 2 3] a=

tf object: 1-by-1

Poles for the given Z transform will be 0.1378 + 1.5273i 0.1378 - 1.5273i -1.2757 Zeros for the given Z transform will be 0 0 2

FIGURE WINDOW

S-ar putea să vă placă și