1. Introduction
This exercise shows how to using MATLAB on find transfer functions of differential equation systems to discover the various properties related to the linear systems, and generate plots to demonstrate these properties.
2. Procedure
2.1. Analysis of differential equations
The transfer function is H = tf([1,3],[1,4,3])
:
Poles are -3, -1, zero is -3.
H = tf([1,3],[1,4,3])
The impluse response converges to zero so the system is asymptotically stable.
H = tf([1,3],[1,4,3])
The transfer function is H =
tf([1,-7,12],[1,3,1,-5])
:
Poles are -2+j, -2-j, 1, zeros are 4, 3.
H = tf([1,-7,12],[1,3,1,-5])
The impluse response diverges so the system is unstable.
H = tf([1,-7,12],[1,3,1,-5])
The transfer function is H = tf([1 -10 21],[1 5 9 5
0])
:
Poles are 0, -2+j, -2-j, -1, zeros are 7, 3.
H = tf([1 -10 21],[1 5 9 5 0])
The impluse response converges to a non-zero number so the system is stable.
H = tf([1 -10 21],[1 5 9 5 0])
2.1.1. Design a stable transfer function
The transfer function is H = tf([1 -6 -16], [1 10 21
0])
:
Poles are 0, -3, -7, zeros are -2, 8.
H = tf([1 -6 -16], [1 10 21 0])
The impluse response is stable because poles are real numbers and includes a zero.
H = tf([1 -6 -16], [1 10 21 0])
2.1.2. Design an asymptotically stable transfer function
The transfer function is H = tf([1 -7 10], [1 3 12
10])
:
Poles are -1-3j, -1+3j, -1, zeros are 2, 5.
H = tf([1 -7 10], [1 3 12 10])
The impluse response is asymptotically stable because poles contains a pair of counjugate numbers.
H = tf([1 -7 10], [1 3 12 10])
2.1.3. Design an unstable transfer function
The transfer function is H = tf([1 0 -1], [1 3 -4
-12])
:
Poles are 2, -3, -2, zeros are -1, 1.
H = tf([1 0 -1], [1 3 -4 -12])
The impluse response is unstable because poles contains a positive number.
H = tf([1 0 -1], [1 3 -4 -12])
2.2. RLC circuit
For R = 40; L = 3*10^-3; C = 5*10^-6;
:
The impluse response is asymptotically stable, as the poles contains a pair of counjugate complex numbers.
Setting R = 1
, 2
, 3
,
10
, we can discover that as resistance increases, the
oscillation drastics reduces, and the pole magnitude is always the
same, only the angle varies.
2.3. Pole-zero cancelation
For H = tf([1 -7 12], [1 1 0 -2])
, we could find
that it has poles 1, -1+j, -1-j, zeros 4, 3.
H = tf([1 -7 12], [1 1 0 -2])
H
= tf([1 -7 12], [1 1 0 -2])
3. Feedback
This lab is a very intensive exercise. While I do apprciate that MATLAB is the most popular toolbox for engineers, I believe that using a CAS would probably be more effective for this type of task.
The tf
used in the exercise needs
the Control System Toolbox add-on to work, and there are
other add-ons has the function of the same name but for different
purpose. I think this needs a clearification.