Lecture 3 – MATLAB/Simulink
• MATLAB
• Simulink
• Demo
1 2021-09-02
MATLAB
• Demo
If you're new to or would like to refresh your skills in MATLAB and/or
programming, I recommend taking the MATLAB Onramp. The Onramp is
an interactive, 2-hour course. It assumes no prior knowledge and walks
through creating variables, accessing arrays, logical operators, control
statements, and loops.
2 2021-09-02
MATLAB/Simulink
• Toolbox for modeling and simulation.
• GUI for building models as block
diagrams.
• Drag-and-drop.
• Supports linear and nonlinear
systems, modeled in continuous
time, sampled time, or a combination
of the two (hybrid).
• Models are hierarchical.
3 2021-09-02
MATLAB/Simulink
• Toolbox for modeling and simulation.
• GUI for building models as block
diagrams.
• Drag-and-drop.
• Supports linear and nonlinear
systems, modeled in continuous
time, sampled time, or a combination
of the two (hybrid).
• Models are hierarchical.
4 2021-09-02
MATLAB/Simulink
• Toolbox for modeling and simulation.
• GUI for building models as block
diagrams.
• Drag-and-drop.
• Supports linear and nonlinear
systems, modeled in continuous
time, sampled time, or a combination
of the two (hybrid).
• Models are hierarchical.
5 2021-09-02
MATLAB/Simulink
• Toolbox for modeling and simulation.
• GUI for building models as block
diagrams.
• Drag-and-drop.
• Supports linear and nonlinear
systems, modeled in continuous
time, sampled time, or a
combination of the two (hybrid).
• Models are hierarchical.
6 2021-09-02
MATLAB/Simulink
• Toolbox for modeling and simulation.
• GUI for building models as block
diagrams.
• Drag-and-drop.
• Supports linear and nonlinear
systems, modeled in continuous
time, sampled time, or a combination
of the two (hybrid).
• Models are hierarchical.
7 2021-09-02
MATLAB/Simulink
u x y
(input signal) (states) (output signal)
Static models: Dynamic models:
8 2021-09-02
Simulink – work flow
• Step 0: Write down your equation
• Step 1: Create Blank Model
• Step 2: Assemble system
• Step 3: Adjust block parameters
• Step 4: Add Sources
• Step 5: Add Sinks
• Step 6: Simulate model
• Step 7: View simulation results
9 2021-09-02
Simulink
A good way to learn Simulink is to practice and explore. Making
mistakes is a part of the learning curve.
10 2021-09-02
The end
11 2021-09-02