L3 - Matlab
L3 - Matlab
• MATLAB
• Simulink
• Demo
1 2021-09-02
MATLAB
• Demo
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)
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