Simulink 1
Simulink 1
What is Simulink?
• Simulink is an “add-on” to MATLAB.
• You need to have MATLAB in order to use
Simulink
• Simulink is used for Simulation of dynamic models
• In Simulink we create a Graphical Block Diagram
for the system (based on the differential
equations(s))
Simulink Model
Start Simulink from MATLAB
Simulink Model Editor
Simulink Library Browser
Simulink Example
Simulink Example II
First Simulink Model
First Simulink Model
First Simulink Model
First Simulink Model
Bacteria Population
Simulink Block Diagram for the
Model
Simulink Block Diagram for the
Model
Exercise
1: Input signal is sin t . It is fed into an amplifier with
gain 2. Simulate the output of the amplifier
Exercise
4.
Exercise (cont’)
1.
2.
3.
Combining MATLAB and Simulink
• Data-driven Modelling
• You may use Simulink together with MATLAB in
order to specify data and parameters to your Simulink
model.
• You may specify commands in the MATLAB
Command Window or as commands in an m-file
(Script).
• This is called data-driven modeling
• Instead of using values directly we use variables
instead - This is more flexible because we can easily
change Simulation Parameters without touching the
Simulink Model
Combining MATLAB and Simulink
Combining MATLAB and Simulink
Mass-Spring-Damper System