University of Sargodha
College of Engineering and Technology
Department of Electrical Engineering
Subject: Linear Control System (EE-321) Assignment No: 02
Title: Control Analysis Semester: 6th
Date: 03 April 2023 Due Date: 17 April 2023
Teacher: Dr. Imran Khan
Note:
- Answer the following questions.
- Be neat and precise.
- This assignment covers CLO: 04 of the course.
The figure below shows a unity feedback configuration,
1
Where 𝐺(𝑠) = and 𝐾(𝑠) = 𝐾
𝑠(𝑠+2)
It is required to design 𝐾(𝑠) such that 𝑡𝑟 ≤ (a value of your choice between 0 and 1).
1. Find the value of 𝐾 which ensures the given transient response specification?
2. Plot the pole placement region using MATLAB?
Hint:
𝑥2 + 𝑦2 = 𝑟2
From 𝑡𝑟 you’ll get 𝜔𝑛 and hence
𝑟. Then 𝑥 = 𝑟𝐶𝑜𝑠(𝜃) and 𝑦 =
𝑟𝑆𝑖𝑛(𝜃). These will be used to
plot the semi-circle as shown in
the example picture.
Note: Axis limits should be 1 unit
greater than the 𝑟 or 𝜔𝑛 .
Line color should be green while
line width should be 3 with dashed
line style.
Page: 1 of 3
University of Sargodha
College of Engineering and Technology
Department of Electrical Engineering
3. Plot the main grid on the same figure? E.g.,
Hint: For x-grid, take an array
spanning from 𝑥𝑚𝑎𝑥 to 𝑥𝑚𝑖𝑛
and define y as an array of
zeros equal to the length of
above mentioned array.
Similar can be done for y-grid.
Line Specifications: Use
dashed line with default line
width
4. Plot 3 cases depending upon the value of 𝐾
a. When poles are inside the semi-circle?
b. When poles are on the semi-circle?
c. When poles are outside the semi-circle?
Hint: These must be plotted on the previous one (here it has intentional changes in parameters)
- Hold on the previous plot
- Define the transfer function with value of 𝐾 causing poles inside the semi-circle.
- Define the transfer function with value of 𝐾 causing poles on the boundary of semi-
circle.
- Define the transfer function with value of 𝐾 causing poles outside the semi-circle.
- Differentiate the poles with different colors.
- Use the command pzplot() for plotting poles.
- Use command “pzoptions” for setting plot properties e.g., for xlabel, ylabel and title, the
font size should be 12 and font weight should be ‘b’.
- Use the following code for changing the marker size of poles
% Change the marker size of the poles
a = findobj(gca,'type','line')
for i = 1:length(a)
set(a(i),'markersize',12) %change marker size
set(a(i), 'linewidth',2) %change linewidth
end
Page: 2 of 3
University of Sargodha
College of Engineering and Technology
Department of Electrical Engineering
5. Finally, when the above figure is generated, use the plot editing tools to insert text arrows
e.g.,
Page: 3 of 3