You are on page 1of 6

Faculty In-charge: Name: Nathan Shankar

Geethanjali P Reg No: 19BEE0381


Lab slot: L43+L44

Block Diagram Reduction


EXPT. NO: 2
DATE: 17/02/2021

AIM:
To reduce the given Block diagram to transfer function model using M-
file Editor in MATLAB.

APPARATUS REQUIRED:
Personal Computer with MATLAB.

PROBLEM STATEMENT:
(i)

+
R(S) + C(S)
+ G2(S) +
G1(S) G3 (S) G4(S)
- 2 - -
1 3 4

H2(S) H3(S)

5 6 7

H1(S)
Let G1(s) = 1 G2(s) = 1/(s+1),
G3(s) = 1/(s+2) G4(s) = 1/(s+3),
H1(s) = 4 H2(s) = 8, H3(s) = 12,
Solution:
%Nathan Shankar 19BEE0381
n1=1;d1=1;
n2=1;d2=[1 1];
n3=1;d3=[1 2];
n4=1;d4=[1 3];
n5=4;d5=1;
n6=8;d6=1;
n7=12;d7=1;
nblocks=7;
blkbuild
q = [ 2 1 -5 0 0

3 2 -6 0 0

4 2 -6 3 -7

5 3 0 0 0

6 3 0 0 0

7 4 0 0 0 ]

input = 1;
output = 4;
[aa,bb,cc,dd]=connect(a,b,c,d,q,input,output);
[num,den]=ss2tf(aa,bb,cc,dd);
printsys(num,den,'s')

System Response:
State model [a,b,c,d] of the block diagrams has 7 inputs and 7 outputs

num/den =

s + 3
--------------------------
s^3 + 26 s^2 + 179 s + 210
Screenshot of the Output:
Manual Calculations:
Inference from Code and Output:
Matlab Simulation Output is verified by the manual reduction technique
hence the code is correct.

You might also like