0% found this document useful (0 votes)
37 views13 pages

Overshoot

The document discusses Matlab code for analyzing step responses of different systems, including code to calculate the transfer function of a system, apply feedback, and plot the step response. It also includes code for designing a lag compensator, combining it with a system, and analyzing the step response of the compensated system. The output includes calculations of the natural frequency, damping ratio, and poles for the compensated system as well as metrics like rise time, settling time, overshoot, and peak value from the step response.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views13 pages

Overshoot

The document discusses Matlab code for analyzing step responses of different systems, including code to calculate the transfer function of a system, apply feedback, and plot the step response. It also includes code for designing a lag compensator, combining it with a system, and analyzing the step response of the compensated system. The output includes calculations of the natural frequency, damping ratio, and poles for the compensated system as well as metrics like rise time, settling time, overshoot, and peak value from the step response.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Qno6

Ans:
Matlab code:

clc
clear
s=tf('s');
G = 1/((s+1)*(s+3)*(s+5));
t=feedback(G,1);
step(T);

Qno7
Ans:
Kp=1
Controller design for lag compensated system
C=(s+0.5)/(s+0.1);
Com_sys=feedback(kp*c*sys,1);
Compensated system response
T=0:0.01:5;
Step(com_sys,t)
Grid
Title(“step response of lag comepensated system having e<0.01)
Output:

We modified the kp=5 and k=5 the corresponding system response

For the compensated system, the following command should be executed


%% Time domain specification of compensated system
[wn,zeta,p] = damp(com_sys)
S = stepinfo(com_sys)

The output of the above command is


wn =

    0.1492
    2.6000
    3.3508
zeta =

     1
     1
     1

p=

   -0.1492
   -2.6000
   -3.3508

S=

    RiseTime: 13.3674
    SettlingTime: 24.5427
    SettlingMin: 0.3462
    SettlingMax: 0.3844
    Overshoot: 0
    Undershoot: 0
    Peak: 0.3844
    PeakTime: 47.2504
Qno8:

Ans:

You might also like