Professional Documents
Culture Documents
Fa18-Bce-001 Lab Assignment 2
Fa18-Bce-001 Lab Assignment 2
Fa18-Bce-001 Lab Assignment 2
BILAL KHAN
LAB ENGINEER: SIR MASROOR
SUBJECT: CONTROL SYSTEM
LAB NO: 2
CLASS: BCE-6A
25 MARCH,2021
LAB 02
The objective of this lab is to understand how to use simple commands in MATLAB to construct the
block diagrams and use the same commands to minimize the block diagrams.
Q1)Lab Task Write down a code that minimizes the following block diagrams and represents them
with one transfer function.
a).
Figure 1: In this question we were asked to minimize the block diagram, in order to do that I took
of feedback of G1 and G2 respectively represented by G3, then I solved G3 and constant ‘K’ in
series which is represented by G4 and then again I took the feedback of G4 which is represented by
G5. After all this I plotted step response of our reduced block diagram.
Figure 2: Step response of first question part a with the value of constant k = 5.
b).
Figure 3: In this question first, we solve G2 and G3 parallelly, secondly we got feedback from the
previous parallelly solved block which is denoted by G5, with G4 and then finally this feedback
block G6 is solved in series with G1.
Q2). Find the step response of the open system and then close loop the system with unity
feedback and then find the step response. Compare the results and discuss
𝒔+𝟐
𝟐𝒔𝟑 + 𝟐𝒔𝟐 + 𝟑𝒔 + 𝟑
Figure 8: In this question we were asked to find the step response of the unity feedback, So I took
the feedback and after this I plotted the step response of the system.
In this lab learnt about the different kind of tools we can use in MATLAB and SIMULINK to get our
desired result. First, we were introduced to a concept called “Block Diagram Reduction” , then we
learnt about the basic definitions such as open-loop, closed-loop , feedback etc., and some basic
methods to solve series or parallel connections and then we used all this methods to minimize systems
that were assigned to us. In last question I compared the step response of both open-loop and closed-
loop and gave my remarks on them.