Answer:
The MATLAB Code for this PI Controller will be:
Kp = 350;
Ki = 300;
Kd = 50;
C = pid(Kp,Ki,Kd)
T = feedback(C*P,1);
t = 0:0.01:2;
step(T,t)
Explanation:
When you are designing a PID controller for a given system, follow the steps shown below to obtain a desired response.
Obtain an open-loop response and determine what needs to be improved
Add a proportional control to improve the rise time
Add a derivative control to reduce the overshoot
Add an integral control to reduce the steady-state error
Adjust each of the gains $K_p$, $K_i$, and $K_d$ until you obtain a desired overall response.
The further explanation is attached in the Word File.