Course Project 2023-2024 Group 2
Course Project 2023-2024 Group 2
Program
Master of Science in Electronics and Communication Engineering
MSc ECE 1
Submitted on ...../....../2023
Viktor Çukaj
Artjola Tabaku
Tirana, 2023
Project Data
U ( z) Y ( z)
Gp(z)
a) Find the poles of this transfer function and draw them in the complex plane z. Draw the
unit circle as well, to verify whether the poles are inside or outside the circle.
b) Is this system stable?
c) Find the final value lim y (k ) using Final Value Theorem, when the input signal is:
k
u (k ) 1 (1.2)
y kT
d) Formulate an Octave script to plot the transient process for .
Solution
a) Transfer function poles are found from the solution of the following equation:
From where:
Below is the Octave script for plotting pole – zero of the transfer function given in (1.1).
%Pole zero map
Gpznum=2
Gpzden=[1 -1.3 0.4]
T=1
Gpz=tf(Gpznum, Gpzden,T)
figure(1)
pzmap(Gz), hold on
x = -1:0.01:1;
y = (1 - x .^ 2) .^ 0.5;
b) The system is stable because the two roots of the equation (1.3) are inside of the unit
circle.
c) c) Based on the final value theorem:
lim y(k ) lim ( z 1)Y ( z ) lim ( z 1)G( z )U ( z )
k z 1 z 1
2 z (1.5)
lim ( z 1) 2 20
z 1
z 1.3z 0.4 z 1
d) To plot the unit step response, we’ve written the following Octave script.
%Step Response of Digital System
figure(2);
step(Gz,'r');
title(['Step response for k=',num2str(k),' T=',num2str(T)],'fontsize',16)
xlabel('t=kT(sec)','fontsize',14)
ylabel('y(kT)','fontsize',14)
We notice that the transient response after about 25 sec. reaches the stabilized value y () 20 ,
so the system is stable.
1
F z (1.6)
z 2.5 z 1
2
Solution
1 1 A B
F z (1.7)
z 2.5z 1 z 2 z 0.5 z 2 z 0.5
2
where:
1 1
A lim z 2
z 2 z 2 z 0.5 1.5
(1.8)
B lim z 0.5 1 1
z 0.5 z 2 z 0.5 1.5
To calculate the residues using Octave, below is presented the following Octave script.
% calculation of residues
clear all, clc, clf()
num = [1]; % numerator of F(z)
den = [1 -2.5 1]; % denominator of F(z)
[r, p, k] = residue(num,den) % calculation of residues
p=
2.0000
0.5000
k = []
k 1 z 1
1 1
a Z 1
= Z 1 (1.9)
1 az z a
so:
k
1 k 1 1 1 41
f (k ) 2 k 1 2k (1.10)
1.5 2 3 32
s 1
G p (s) (1.11)
0.1s 1
Find Digital Transfer Function if the sampling period is T 0.25sec.
A/D
T Y ( z)
D/A - ZOH Process y (kT )
*
sT
Y (s)
u (kT ) U ( z ) 1 e U ( s ) Gp(s)
U * (s) s Y (s)
Fig. 3 The Process and the D/A converter
a) Write an Octave script for finding Digital Transfer Function of the process in cascade
with ZOH
10 z - 9.082
------------
z - 0.08208
Sampling time:
T = 0.25
Controller Process
R(s) E(s) U(s) 1 Y(s)
Gc(s)
ms b
Solution
Performance indicators in the complex plan (position of the desired poles) are defined as
follows
4 4
0.5 (1.14)
ts 8
0.5
n 0.83 (1.16)
0.7
n2 0.69
Gdes ( s) 2 (1.17)
s 2n n s 1.15s 0.69
2 2
Comparing the coefficients near the same powers of s of the denominators of (1.17) and (1.13),
we find
Simulations in Scilab
(1.19)