GENG5503 Modern Control Systems Lab 1 Mathematical Modeling: V. Sreeram
GENG5503 Modern Control Systems Lab 1 Mathematical Modeling: V. Sreeram
∗
V. Sreeram
February 7, 2016
∗
School of Electrical, Electronic and Computer Engineering, University of Western Australia,
Crawley, Western Australia 6009.
0
1 Aim
2 Introduction
$ matlab
demo
1
help
help eig
The files that contain MATLAB statements are called M-files because they have a
file type of “.m” as the last part of the filename. For example, a file named bessel.m
might contain MATLAB statements that evaluate Bessel functions.
M-files can also be used as function files. They allow new functions to be added
to the existing functions. Much of the power of MATLAB derives from this ability
to create new functions that solve user-specific problems.
3 Procedure
ẋ = Ax + bu
y = cx
2
Note that MATLAB has controller, controllability, observer, observability, and
diagonal functions given the the state-space matrices of the individual subsys-
tems. However, you need to write your own functions to do the same.
Use the following third-order system to test your function program. (0.5 marks)
s2 + 9s + 20
G(s) =
s3 + 6s2 + 11s + 6
ẋ = Ax + bu
y = cx
where
0 0 −2 1 h i
A = 1 0 −5 , b = 0 , and c = 4 8 8
0 1 −4 0
plot the states x1 (t), x2 (t), and x3 (t) and the output of the system y(t) for the
following inputs (1 mark):
Solve the above problem using the following initial conditions (1 mark):
3
4. Write M-files to compute the transfer functions of the systems, shown by the
block diagrams (Figures 1-3) (2 marks). The transfer functions of the blocks
G1 (s) and G2 (s) in the figures are given by
(s + 1)(s + 4)
G1 (s) =
(s + 2)(s + 3)
(s2 + s + 2)
G2 (s) =
(s2 + 2s + 2)
Note that MATLAB has feedback, parallel and series functions to compute the
transfer functions given the transfer functions, or the state-space matrices of
the individual subsystems. However, you need to write your own functions to
do the same. In your report, show complete derivations both in frequency and
time domains (3 marks).
G2 (s)
- G1 (s)
?+
U (s) g - Yp (s)
6+
- G2 (s)
4
4 Report Structure
1. Aim (1 mark)
- Describe the objectives of this lab
4. Conclusion (1 mark)
- Summarise the results obtained from the questions (0.5 marks)
- Link the results to the objectives of this lab (0.5 marks)
5 References
1. Dorf and Bishop, Modern Control Systems, Addison Wesley Longman Inc., 1998
(Section 2.10).