Lab 4 slides
Lab 4 slides
Lab 4
Analysis of system response
using SIMULINK
❖ SIMULINK introduction
❖ Response of first order system to the step input
❖ Using Simulink Basic Blocks
❖ Using Simulink MATLAB function
❖ S-function based implementation.
❖ Using Laplace transforms
❖ Lab tasks
Simulink Introduction
• Simulink is a simulation and model-based design environment for dynamic and embedded systems, which
are integrated with MATLAB. Simulink is also developed by MathWorks. It is a data flow graphical programming
language tool for modelling, simulating and analyzing multi-domain dynamic systems. It is basically a graphical block
diagramming tool with a customizable set of block libraries. Furthermore, it allows you to incorporate MATLAB
algorithms into models as well as export the simulation results into MATLAB for further analysis. Simulink
supports the following:
• Simulation.
• Automatic code generation.
• Testing and verification of embedded systems
Example 1: Missile Guidance System
Example 2: Quadcopter Flight Simulation Model
Example 2: Quadcopter Flight Simulation Animation
Examples available in Simulink environment
• Aerospace Blockset
• Control system toolbox
• Reinforcement Learning toolbox
• Robotics toolbox
• Sensor fusion and tracking toolbox
• Robust control toolbox
• Many examples are available to start with
Examples available in Simulink environment
Simulink start button
Simulink Library Browser
𝑹 +
+
𝒖 𝑪 𝑽
−
−
1 1
𝑉ሶ = 𝑢 − 𝑉 (1)
𝑅𝐶 𝑅𝐶
Using basic blocks
Using Laplace transforms
Considering zero initial condition and taking the Laplace transform of a system we will
get:
1 1
𝑠𝑉 𝑠 − 𝑉(0) + 𝑉(𝑠) = 𝑈(𝑠) (2)
𝑅𝐶 𝑅𝐶
1 1
𝑠𝑉 𝑠 + 𝑉(𝑠) = 𝑈(𝑠) (3)
𝑅𝐶 𝑅𝐶
1
𝑉 𝑠 𝑅𝐶
= 1 (4)
𝑈 𝑠 𝑠+𝑅𝐶