Control system 2 Lab1
Lab1: Proportional Controller
write a MATLAB program to plot the root locus and find the following specification:
1) Find the value of k that make the system marginally stable
2) Design a proportional controller Kp such that the damping ratio of closed loop pole will be equal
to 0.6
3) From step response plot and when K =6 find peek response, setting time, rise time and steady
state error
Solution
MATLAB program is
clear all
clc
s=tf('s')
'Gp(s)'%display label
Gp=1/(s^3+5*s^2+4*s)%or Gp=(1/(s*(s+1)*(s+4))create and display
rltool(Gp)
computer response
Using simulink plot the output for k=2, k=20, for the system below
Or
The response For k=2
Command window
>> plot(time,response)
>> grid
The response For k=20
Command window
>> plot(time,response)
>> grid