Matlab Project Section B1
Matlab Project Section B1
9/10
Lab-0: Familiarization with MatLab main commands used for control
system analysis.
Objective:
➢ Familiarize how to use the following matlab commands/functions: roots, poly, conv, polyval,
tf, pzmap, pole, zero, laplace, ilaplace.
➢ Find the roots of characteristics equation or poles of transfer function(TF), zeros of TF.
Code:
Output:
Lab-1: Familiarization with MatLab main commands used for control
system analysis.
Objective:
➢ Familiarize how to use the following matlab commands/functions: roots, poly, conv, polyval,
tf, pzmap, pole, zero, laplace, ilaplace.
➢ Find the roots of characteristics equation or poles of transfer function(TF), zeros of TF.
1. Repeat all the above MatLab commands for the following transfer function
Solution:
Lab-2: BLOCK DIAGRAM REDUCTION.
Objective:
➢ The objective of this lab will be to learn MATLAB commands that would be used to reduce
linear systems block diagram using series, parallel, feedback, general block diagram
reduction method and to draw impulse and step response for given system
EXERCISE 1: Write a Matlab code to find the transfer function and step response of the system using the command
parallel, series and feedback
EXERCISE 2: Find the inverse laplace transform of F(s) = (s+3)/((s+4)(s+7)^2)
Lab-3: Simulink modeling of physical systems.
Objective:
➢ To write the mathematical model of some physical systems using MATLAB
➢ To be able to build MATLAB/ Simulink model of physical systems
EXERCISE 1: Consider the dynamics of train system is given in Fig. 1.
EXERCISE 2: Consider a single tank fluid level control system shown in Fig. 2
EXERCISE 3: Consider a double tank fluid level control system shown in Fig. 3
Lab-4: Control system performance analysis
Objectives:
k
a. 𝐺1 = , 𝑓𝑜𝑟 𝑘 = 10
𝑠4 +4𝑠3 +8𝑠2 +8𝑠+4
k
b. 𝐺2 = 𝑠3 +8𝑠2 +2𝑠+16 , 𝑓𝑜𝑟 𝑘 = 5
k
c. 𝐺3 = , 𝑓𝑜𝑟 𝑘 = 1
𝑠4 +8𝑠3 +29𝑠2 +52𝑠+
k
d. 𝐺4 = 𝑠4 +4𝑠^3+6𝑠^2+4𝑠 , 𝑓𝑜𝑟 𝑘 = 1
A. For k = 5;
B. For k = 10;
Lab-6: Controller Design via Root Locus, Bode Plot, Nichols Chart
Objective:
1. Design PID and other compensator for a system using root locus, Bode plot, Nicholas chart
2. Determine system response specifications from the design
1
a. 𝐺 = 𝑠3 +7𝑠2 +10𝑠 𝑎𝑛𝑑 𝐻 = 1 , 𝑝𝑑 𝑑𝑒𝑠𝑖𝑔𝑛 𝑤𝑖𝑡ℎ 𝑟𝑜𝑜𝑡 𝑙𝑜𝑐𝑢𝑠
Pd design with siosotool:
1 1
b. 𝐺 = 𝑠2 +0.7𝑠+2 𝑎𝑛𝑑 𝐻 = 𝑠+1 , 𝑝𝑑 𝑑𝑒𝑠𝑖𝑔𝑛 𝑤𝑖𝑡ℎ 𝑟𝑜𝑜𝑡 𝑙𝑜𝑐𝑢𝑠
Pd design with siosotool: