Experiment 7 Matlab
Experiment 7 Matlab
2. G ( z ) =
Software Used: MATLAB Theory: The Z-transform converts a time domain signal, which is a sequence of real or complex numbers,
into a complex frequency domain representation. The z-transform G(z) of a sequence g[n] is defined as
where z is a complex variable. The set of values of z for which the z-transform G(z) converges is called its region of convergence (ROC). In general, the region of convergence of a z-transform of a sequence g[n] is an annular region of the z-plane:
In the case of LTI discrete-time systems, all pertinent z-transforms are rational functions of z1, that is, they are ratios of two polynomials in z1:
19
The zeros of G(z) are given by z = r while the poles are given by z = s. There are additional (N M) zeros at z = 0 (the origin in the z-plane) if N > M or additional (M N) poles at z = 0 if N <M.
Source Code:clear all; close all; clc; num1=[2 7 48 56 0]; den1=[32 3 -15 18 -12]; num2=[4 -9 15 0 -7]; den2=[1 -2 10 6 64]; sys1=tf(num1,den1,-1); disp('<----Transfer Function for System 1---->'); sys1 disp('<----Factor Form for System 1---->') zpk(sys1) sys2=tf(num2,den2,-1); disp('<----Transfer Function for System 2---->') sys2 disp('<----Factor Form for System 2---->') zpk(sys2)
Results:
Output on Command Window
20
21