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

Simulation Exercise CS II - 2024

The document contains 5 questions regarding simulation exercises using MATLAB. Question 1 involves obtaining the unit step response, simulating dynamics, and transfer function of an LTI system. Question 2 derives the output of a system and compares simulation using Euler's method. Question 3 checks controllability and observability of a system. Question 4 transforms a state space model into canonical forms. Question 5 involves designing state feedback and observer controllers to meet specifications.

Uploaded by

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

Simulation Exercise CS II - 2024

The document contains 5 questions regarding simulation exercises using MATLAB. Question 1 involves obtaining the unit step response, simulating dynamics, and transfer function of an LTI system. Question 2 derives the output of a system and compares simulation using Euler's method. Question 3 checks controllability and observability of a system. Question 4 transforms a state space model into canonical forms. Question 5 involves designing state feedback and observer controllers to meet specifications.

Uploaded by

alokb210846ee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Simulation Exercise (MATLAB)

Max Marks: 10 Submit before 5pm, 15/04/2024

(Include steps, answers, plots and code for all the questions)

1. The state space model of an initially relaxed LTI system is described by the following matrices.
−1 0 𝑝 0
𝐴= 1 −2 0 , 𝐵 = 0 , 𝐶 = [1 0 0], 𝐷 = [0]
−1 0 −3 1
where, 𝑝 = √(𝑙𝑎𝑠𝑡 𝑡ℎ𝑟𝑒𝑒 𝑑𝑖𝑔𝑖𝑡𝑠 𝑜𝑓 𝑦𝑜𝑢𝑟 𝑟𝑜𝑙𝑙 𝑛𝑢𝑚𝑏𝑒𝑟/10). (if the roll number is
B210258EE, then 𝑝 = √25.8)

a) Obtain the unit step response of the system using the command ‘step’.
b) Simulate the system dynamics with unit step input using i) Euler’s integration ii) 4 th order
Runge Kutta approximation iii) using the ODE tool and plot the output. Compare these with
the result in a).
c) Obtain the transfer function of the system.
d) Obtain the transfer function using MATLAB.

2. Consider the system described by:


0 −1 1 0
𝑥̇ (𝑡) = 𝑥(𝑡) + 𝑢(𝑡), 𝑦(𝑡) = [2 3]𝑥(𝑡), 𝑥(0) = , 𝑢(𝑡) = 1 𝑓𝑜𝑟 𝑡 ≥ 0
3 −4 1 1

a) Derive the output of the system. (find the solution of state equation and substitute it in the
output equation)
b) Plot this output for 20 seconds.
c) Simulate the system dynamics using Euler’s integration and plot the output. Compare this
with the result in b).
3. Check the controllability and observability of the system given below using
controllability/observability matrix.
2 1 1 1
𝑥̇ (𝑡) = −𝑝 3 6 𝑥(𝑡) + 0 , 𝑦(𝑡) = [1 1 2]𝑥(𝑡)
−𝑝 −1 −4 0

where, 𝑝 is equal to 1 + the sum of the last two digits of your roll number

if your roll number is B210258EE, then 𝟓 + 𝟖 = 𝟏𝟑, 𝟏 + 𝟑 = 𝟒, 𝒔𝒐 𝑝 = 𝟏 + 𝟒 = 𝟓)

4. Transform the state space model into controllable and observable canonical forms. (use: ctrbf,
obsvf).
1 1 0 0 1
𝑥̇ (𝑡) = 0 1 0 𝑥(𝑡) + 1 0 , 𝑦(𝑡) = [1 1 1]𝑥(𝑡)
0 1 𝑎 0 1
if your roll number is B21efghEE, then, 𝑎 = 2 + h. (For B210258EE, 𝑎 = 2 + 8 = 10)
5.

a) Plot the unit step response of the following system and determine the settling time and
peak overshoot. Determine the closed loop poles.
b) Design a state feedback controller such that the system has a settling time of 2sec (for 2%
tolerance) and peak overshoot of 16% for unit step response.
c) Plot the unit step response of the controlled system and verify that the design
specifications are satisfied. Determine the closed loop poles of the controlled system.
d) Design a state observer for the system so that the observer eigenvalues are -10, -10 and -
15.
e) Simulate the system response with the observed states and the state feedback controller
designed in (b) assuming zero initial conditions.
f) Compare the results of (c) and (e).

0 1 0 0
𝑥̇ (𝑡) = 0 0 1 𝑥(𝑡) + 1 , 𝑦(𝑡) = [1 0 0]𝑥(𝑡)
−1 −5 −𝑎 1
If your roll number is B21efghEE, then, 𝑎 = 1 + h. (For B210258EE, 𝑎 = 1 + 8 = 9)

********************************

You might also like