Exp 5
Exp 5
Objective: The objective of this exercise will be to learn commands in MATLAB that would
be used to reduce linear systems block diagram using series, parallel and feedback
configuration.
List of Equipment/Software
Following equipment/software is required:
MATLAB
Category Soft-Experiment
Deliverables
A complete lab report including the following:
Series configuration: If the two blocks are connected as shown below then the blocks are
said to be in series. It would like multiplying two transfer functions. The MATLAB
command for the such configuration is “series”.
Example 1: Given the transfer functions of individual blocks generate the system transfer
function of the block combinations.
The result is as shown below:
Parallel configuration: If the two blocks are connected as shown below then the blocks
are said to be in parallel. It would like adding two transfer functions.
Example 2: For the previous systems defined, modify the MATLAB commands to obtain the
overall transfer function when the two blocks are in parallel.
Feedback configuration: If the blocks are connected as shown below then the blocks are
said to be in feedback. Notice that in the feedback there is no transfer function H(s) defined.
When not specified, H(s) is unity. Such a system is said to be a unity feedback system.
The MATLAB command for implementing a feedback system is “feedback” as shown below:
When H(s) is non-unity or specified, such a system is said to be a non-unity feedback system
as shown below:
Example 3: Given a unity feedback system as shown in the figure, obtain the overall transfer
function using MATLAB:
Poles and Zeros of System: To obtain the poles and zeros of the system use the MATLAB
command “pole” and “zero” respectively as shown in example 5. You can also use MATLAB
command “pzmap” to obtain the same.
Example 5: Given a system transfer function plot the location of the system zeros and poles
using the MATLAB pole-zero map command.
For example:
Example 5
The block diagram shown in figure blow is showing the parallel, series and feedback
connections. By using the rules of block diagram reduction, the closed loop block
diagram can be reduced to single block which gives the overall transfer function of the
system.
Program
%Determine the transfer function for given closed loop system in
block diagram representation.
%Transfer Functions: G1 = 5, G2 = s, G3= 1/(s^2+ s), H1=1
clear all
clc
syms s t
n1=[1 0]; % Numerator of G1
d1=[0 1]; %Denominator of G1
G1=tf(n1,d1,'inputname','Ei','outputname','Eo1')
n2=[5]; % Numerator of G2
d2=[1]; %Denominator of G2
G2=tf(n2,d2,'inputname','Ei','outputname','Eo2') % Determining the G2
n3=[1]; % Numerator of G3
d3=[1 1 0]; % Denominator of G3
G3=tf(n3,d3,'inputname','Eo','outputname','C') % Determining the G3
n4=[1]; % Numerator of H1
d4=[1]; % Denominator of H1
H1=tf(n4,d4,'inputname','C','outputname','B') % Determining the H1
[n5,d5]=parallel(n1,d1,n2,d2);
G_12=tf(n5,d5,'inputname','Ei','outputname','Eo') %Parallel Combination of G1and G2
[n6,d6]=series(n5,d5,n3,d3);
G_forward=tf(n6,d6,'inputname','Ei','outputname','C') %SeriesCombination of G_12
and G3
[n7,d7]=feedback(n6,d6,n4,d4);
G_overall=tf(n7,d7,'inputname','R','outputname','C') % Overall Transfer Function of
closed Loop Transfer Function
pzmap(G_overall) % To plot poles and zeros of Overall Transfer Function
Results:
Transfer function from input "Ei" to output "Eo1":
s
Transfer function from input "Ei" to output "Eo2":
5
Transfer function from input "Eo" to output "C":
1
s^2 + s
Transfer function from input "C" to output "B":
1
Transfer function from input "Ei" to output "Eo":
s+5
Transfer function from input "Ei" to output "C":
s+5
-------
s^2 + s
Transfer function from input "R" to output "C":
s+5
-------------
s^2 + 2 s + 5
Exercise 1: For the following multi-loop feedback system, get closed loop transfer function and the
corresponding pole-zero map of the system.
1 1 s2 1 s 1 s 1
;G ;G ; G4 ; H1 ; H2 2
Given G1 (s 10) 2
(s 1) 3 (s 4s 4)
2
(s 6) (s 2)
; H3 1
R(s)
+ G(s)
Y(s)
-
H(s)