Coursework Specification
Use Matlab commands and Simulink to perform the following tasks. You must submit
the Matlab commands you used as well as resulting outputs/plots in your report. For
Q10, you should also include a discussion of the results.
Submit the report in PDF format on Canvas by the deadline.
Block Diagram Models
Q1 Use Matlab to find the roots of the following polynomials:
a) p = s6+3s5+2s4+3s3+2s2+3s+5
b) p = 3s2+2s+3
[5 marks]
Q2 Use Matlab to find the pole(s) and zero(s) of the following transfer functions:
a)
10 3
5
( )
1 2
 

s s
s
G s
b)
2 5 2
5 7
( )
3 2
2
1
  
 

s s s
s s
G s
[5 marks]
Q3 Use Matlab to determine the open loop transfer function of the following system:
[5 marks]
Q4 Use Matlab to determine the closed loop transfer function of the following unity feedback
system:
[5 marks]

+
s s 5
2s 1
2
 

s s 3
1
2
 
Q5 Use Matlab to determine the closed loop transfer function of the following feedback system:

Q6 In matlab, use block reduction techniques to determine the closed loop transfer function of
the following system:

+

+ +

System Stability-Routh Hurwitz Criterion
Q7
a) Find the closed loop transfer function of the following unity feedback system:
The closed loop transfer function can be found using
1 ( ) ( )
( )
G s H s
G s

where, for this system,
H(s) = 1.

b) Using the characteristic equation from above and the Routh Hurwitz Stability Criterion,
find the range of gain k for system stability.

c) What is the value of k that makes the system oscillate and the frequency of oscillation?

Q8 For the unity feedback system shown below, use the Routh Hurwitz Stability Criterion to find
Tracking Accuracy
Q9 A second order position control system is shown in the following diagram:
The output Y(s) gives the position in mm and is subject to the effect of disturbances. A proportional
plus integral controller is used.
a) With K = 0.5, plot the output y(t) for a disturbance input of magnitude 2. What does the plot
show?

b) Let K take the following values: K = 0.5, 1.0, 1.5 and 2.0. Draw a table showing the effect of
the disturbance on the output response.

D(s)
R(s) Y(s)
+

+
+
Controller Design
Q10 Introduction
The process to be controlled is a liquid level process consisting of 2 storage tanks.
The process dynamics are described by the following transfer function:
𝐺(𝑠) =
𝐻2(𝑠)
𝑀(𝑠)
=
𝐾
(𝑇1𝑠 + 1)
2
where H2 is the level in tank 2 and M is the input to the inflow valve of tank 1.
K = day of birth (in range 1 to 31)
T1 = month of birth (in range 1 to 12)
Open Loop Step Response
a) Simulate the process transfer function with a unit step change in input.
[5 marks]
b) Take required measurements from the response in a) for use in the Ziegler-Nichols open
loop PID tuning method.
[5 marks]
P Control
c) Design a P controller gain (Kc) for the process using your results in b) and Ziegler-Nichols
open loop method. Simulate the closed loop P control response to a unit step input.
[5 marks]
A PID block can be used to simulate the controller, shown in the following example diagram.
Transfer function is the process. PID, Multiplexer (MUX) and Sum simulation blocks are used.
Note The PID block implements a parallel form of the controller: 𝐺𝑐
(𝑠) = 𝐾𝑝 +
𝐾𝑖
𝑠
+ 𝐾𝐷𝑠.
This should be compared to the standard form: 𝐺𝑐
(𝑠) = 𝐾𝑐(1 +
1
𝑇𝑖𝑠
+ 𝑇𝑑𝑠), to enter the
correct values for the block.
c) Adjust Kc and simulate the response to achieve a percent overshoot (%OS) of between 10 to
20%

General Note: To get a more accurate simulation (more data points, smoother plots), set
the Max. Step Size (Simulation → Simulation Parameters menu on SIMULINK model) from
‘auto’ to a smaller value, e.g. 0.1.
PI Control
d) Design a PI controller (Kc and Ti) for the process using your results in part b) and ZieglerNichols
open loop method. Simulate the closed loop PI control response to a unit step input.
Compare the response with the previously designed P controller in terms of %OS, settling

e) Adjust Kc if required to achieve a percent overshoot (%OS) of between 10 to 20%. With this
value of Kc, choose two other values for Ti to show the effect of changing the integral action
time (Ti) on the controlled response. Include:
i. plots of the step responses (max. 3),
ii. a table comparing the percent overshoot (%OS), settling time and steady state error
for the three values of Ti used.

Routh Hurwitz Stability Criterion
Guide to Performance Criteria
70% and above:
Your work must be of outstanding quality and fully meet the requirements of the coursework
specification and learning outcomes stated. You must show independent thinking and apply this to
your work showing originality and consideration of key issues. There must be evidence of wider
Key words which may describe a coursework at this level include: appraises, compares, concludes, contrasts,
criticizes, critiques, defends, discriminates, evaluates, explains, interprets, justifies, relates, supports.

Your work must be of good quality and meet the requirements of the coursework specification and
learning outcomes stated. You must demonstrate some originality in your work and show this by
applying new learning to the key issues of the coursework. There must be evidence of wider reading
on the subject.
Key words which may describe a coursework at this level include: categorizes, combine