CS - Exp8 2021200115
CS - Exp8 2021200115
UID: 2021200115
CS - EXPERIMENT 8
Objective (A):
To observe and justify step response and impulse response of first‐ order
control system
MATLAB Code
clc close
all clear
all
t=0:0.01:10; u=t;
num = input('enter the numerator of the
transfer function') den =
input('enter the denominator of the
transfer function')
disp('For the transfer function:')
g=tf(num, den)
subplot(3,1,1);
impulse (g);
subplot(3,1,2);
step(g);
subplot(3,1,3);
lsim(num,den,u,t);
Result:-
num = 1×2
1 2 den
= 1×2
3 4
For the transfer function:
g =
s + 2
3 s + 4
s^2 + s + 1
Result:-
s^2 + 1
s^2 + 0.6 s + 1
1
s^2 + 2 s + 1
Continuous-time transfer function. The
undamped transfer function is:
g_over_damped =
s^2 + 10 s + 1
Conclusion:‐
• From this experiment I learnt how the step and impulse response of first order and
second order control system.
• Also plotted the step response graphs for underdamped, overdamped and critically
damped.