0% found this document useful (0 votes)
5 views9 pages

MATLAB Supporting Lecture

Uploaded by

Ahmed Lasheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views9 pages

MATLAB Supporting Lecture

Uploaded by

Ahmed Lasheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

MATLAB

The Language of
Technical Computing
Prepared by:
Dr./ Essam Nabil

Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Series connection (multiplication):
syntax1:
>>sys = series(sys1,sys2) %forms basic
series connection as shown.

syntax2:
>>sys = series(sys1,sys2,outputs1,inputs2)
%forms the more general

series connection shown.

2
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Applicati
on:

G1=tf(10*[1 2],[1 1 6]);


G2=tf([1 1], conv([1 0.5 0],[1 4
25]));
G= series(G1,G2)
3
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Parallel connection (Addition):
syntax1:
>>sys = parallel (sys1,sys2) %forms basic
parallel connection shown.

syntax2:
>>sys = parallel(sys1,sys2,inp1,inp2,out1,out2) %forms
general parallel connection

4
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Applicati
on:

G1=tf(10*[1 2],[1 1 6]);


G2=tf([1 1], conv([1 0.5 0],[1 4
25]));
5
G=
Dr./ Essam Nabil parallel(G1,G2)
Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Feedback connection (Closed-loop):
syntax1:
>> sys = feedback(sys1,sys2) %returns
an LTI model sys for the

negative feedback interconnection.

Note:
To apply positive feedback, use the syntax:
>>sys = feedback(sys1,sys2,+1)
By default, feedback(sys1,sys2) assumes negative
feedback and is equivalent to
6
feedback(sys1,sys2,-1).
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Block Diagram Reduction
Applicati
on:

G = tf([2 5 1],[1 2 3]);


H = zpk(-2,-10,5) ;
Cloop = feedback(G,H)
7
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering
Questions and Discussions…!

Dr./ Essam Nabil Faculty of Electronic Engineering Industrial Electronics and Automatic Control Engineering

You might also like