Professional Documents
Culture Documents
2
Defining linear -time invariant systems in TF (transfer function)
and ZPK (zero-pole-gain) forms.
Contents
1. Objective 1
2. Expected outcome of experiment 1
3. Equipment’s required 1
4. Theory 2
5. Exercise 4
6. Observation 4
7. Conclusion 4
1. Objective:
3. Equipment’s required:
This table shows equipment’s for one group
4. Theory:
In order to simplify the commands, the Control System Toolbox can also use data-structures.
The Linear systems are represented by three main models: transfer function, zero-pole-gain
and state space models.
1
(𝑠 − 𝑧1 )(𝑠 − 𝑧2 ) … (𝑠 − 𝑧𝑚 )
𝐺𝑧𝑝𝑘 (𝑠) = 𝑘
(𝑠 − 𝑝1 )(𝑠 − 𝑝2 ) … (𝑠 − 𝑝𝑛 )
𝒙̇ = 𝑨𝒙 + 𝑩𝒖
𝒚 = 𝑪𝒙 + 𝑫𝒖
2 2
𝐺(𝑠) = =
𝑠2 + 3𝑠 + 1 (𝑠 + 1)(𝑠 + 2)
The above defined G(s) transfer function can be defined as a LTI data-structure:
» num = 2
» den = [1, 3, 2]
» Gtf = tf(num,den)
» Gss = ss(A, B, C, D)
» Gzpk1 = zpk(Gtf) : Conversion from transfer function (tf) to zero-pole-gain (zpk) form.
» Gss1 = ss(Gtf) : Conversion from transfer function (tf) to state space (ss) form.
» Gtf1 = tf(Gss) : Conversion from state space (ss) to transfer function (tf) form.
» get(Gtf)
» get(Gzpk)
» get(Gss)
The parameters (properties) can be accessed too. The 'v' flag means that the result is in vector
format.
2
» num2 = Htf.num{1}
Or
» p1 = Hzpk.p{1}(1)
» a1 = Hss.a
Simulink
When creating a new file and copying the different blocks, the parameters of the blocks should
be changed to the required values. SIMULINK uses the variables defined in the MATLAB
workspace.
o Start MATLAB.
o Start Simulink.
• Create the Simulink block diagram of linear time invariant systems as given and find
their responses.
5. Exercise: Following are the exercise questions but are not limited to.
5.1. Defining the transfer function form:
• For the following, transfer function given by
𝑠+2 𝑠−2 100 𝑠−1
𝐺(𝑠) = 𝑠+5; 𝐺(𝑠) = 𝑠+5; 𝐺(𝑠) = 𝑠2 +5𝑠+100; 𝐺(𝑠) = 𝑠2 +5𝑠+100
• Covert the transfer function model form into the zpk and state-space model form.
• For the same above system convert into the transfer function model form and the zpk
model form.
1 100
𝐺(𝑠) = 𝑠+20 in series with 𝐻(𝑠) = 𝑠2 +5𝑠+50
3
6. Observation:
Save the responses (screenshots of programs and Simulink diagrams) after execution and
attach to your lab record.
7. Conclusion:
Write in your own words the conclusion of performing this experiment. Write about what you
learned from this experiment.