Lab 05
Lab 05
Section-I
f(t) k
x(t)
G(s) =
Write MATLAB commands to declare the transfer function of the system. Sketch the step
response.
Page | 1
Linear Control System Lab Lab 5
s-plane
What is relationship between the real part of the roots and settling time?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
What is relationship between the imaginary part of the roots and the frequency of oscillations
of the step response?
___________________________________________________________________________
___________________________________________________________________________
Section-II (SIMULINK)
Again, consider the spring-mass-damper system of figure 6.1. The differential equation of the
above model is:
𝑑2 𝑥 𝑑𝑥 (1)
𝑀 2
+𝐵 + 𝐾𝑥 = 𝑓(𝑡)
𝑑𝑡 𝑑𝑡
𝑑𝑥 (2)
𝑑2 𝑥 𝑓(𝑡) − 𝐵 𝑑𝑡 − 𝐾𝑥
=
𝑑𝑡 2 𝑀
Page | 2
Linear Control System Lab Lab 5
Implement above model and select appropriate scale and simulation parameters to get the step and
impulse responses. Sketch them in the space below.
Page | 3
Linear Control System Lab Lab 5
Figure 6.5: Step response of mass-spring-damper system using transfer function block.
Make sure you enter 0 in Step time of F(s) block. Does the step response match the one given in
figure 6.3? Calculate impulse response from model of figure 6.4. Suppose we need to dispatch data
from Simulink model to MATLAB workspace. ‘To workspace’ block of sink library will help.
Change the save format of ‘To Workspace’ block to array format. Run the model and enter
following commands in MATLAB workspace.
Page | 4
Linear Control System Lab Lab 5
It will produce the same step response, previously obtained through step command in MATLAB.
Exercise 01
Write differential equation(s) for the following system and find transfer function Y(s)/U(s). Sketch
the step response. (Show all working)
Page | 5