0% found this document useful (0 votes)
2 views

Control system Lab 1

Uploaded by

belal ma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Control system Lab 1

Uploaded by

belal ma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Control system 1 Lab1

Block Diagram Reduction

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.

Block Diagram :

 Matlab code:

clc
clear all
n1=[1 2];
d1=[4 2 1];
sys=tf(n1,d1)
 Series configuration :

 Matlab code

Example 1: In the following figure, write MATLAB code for a reduced block
diagram

clc
clear all
n1=[1 1];
d1=[1 2];
n2=[1];
d2=[500 0 0];
sys1=tf(n1,d1)
sys2=tf(n2,d2)
sys=series(sys1,sys2)
 parallel configuration :

 Matlab code

Example 2 :
Same as example (1), but parallel:

clc
clear all
n1=[1 1];
d1=[1 2];
n2=[1];
d2=[500 0 0];
sys1=tf(n1,d1)
sys2=tf(n2,d2)
sys=parallel(sys1,sys2)
 Feedback configuration :
1)

 Matlab code

2)

 Matlab code

Example 3 : In the following figure, write MATLAB code for a reduced block
diagram
clc
clear all
n1=[1 1];
d1=[1 2];
n2=[1];
d2=[500 0 0];
sys1=tf(n1,d1)
sys2=tf(n2,d2)
sys3=series(sys1,sys2)
sys=feedback(sys3,1,-1)

Example 4 : In the following figure, write MATLAB code for a reduced block
diagram

clc
clear all
n1=[1];
d1=[500 0 0];
n2=[1 1];
d2=[1 2];
sys1=tf(n1,d1)
sys2=tf(n2,d2)
sys=feedback(sys1,sys2,-1)

H.W

You might also like