SS To TF Matlab
SS To TF Matlab
1 EXPERMINT NO.2
STATE SPACE &BLOCK DIAGRAM
1.1 State space
The classical control theory and methods are based on a simple input-output
relationship of the plant, usually expressed as a transfer function. These
methods do not use any knowledge of the interior structure of the plant, and
limit us to single-input single-output (SISO) systems, and as we have seen
allows only limited control of the closed-loop behavior when feedback
control is used.
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
Commands
The commands used in this lab are:
Command Specification
Convert transfer function filter parameters to zero-pole-gain
tf2zp
form
Convert zero-pole-gain filter parameters to transfer function
zp2tf
form
ss2tf Convert state-space filter parameters to transfer function form
tf2ss Convert transfer function filter parameters to state-space form
zp2ss Convert zero-pole-gain filter parameters to state-space form
ss2zp Convert state-space filter parameters to zero-pole-gain form
ANS:
num=[1 7 2];
den=[1 9 26 24];
[a b c d]=tf2ss(num,den)
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
Example2: Find the transfer function for the following state model.
ANS:
a=[0 1 0 ; 0 0 1 ; -1 -2 -3];
b=[10 ; 0 ; 0];
c=[1 0 0];
d=0;
[num,den]=ss2tf(a,b,c,d);
sys=tf(num,den)
ANS:
numg=[1];deng=[500 0 0];sysg=tf(numg,deng);
sys=series(sysgc,sysg)
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
Parallel configuration: If the blocks are connected as shown below then the
blocks are said to be in parallel .It would like adding two transfer functions.
ANS:
numg=[1];deng=[500 0 0];sysg=tf(numg,deng);
sys=parallel(sysgc,sysg)
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
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.
ANS:
numg=[1];deng=[500 0 0];sysg=tf(numg,deng);
sysf=series(sysgc,sysg);
sys=feedback(sysf,1,-1)
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
ANS:
numf=[1];denf=[500 0 0];sysf=tf(numf,denf);
sys=feedback(sysf,sysh,-1)
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)
HOMEWORKS
(1) For the following system obtain the overall transfer function using
MATLAB
(2) Consider the control systems in figures below, determine the state
Space representation
Al mustaqbal college Control system I Lab.
Biomedical engineering dept. Stage : 4th (course 1)