Simulink: Hans-Petter Halvorsen
Simulink: Hans-Petter Halvorsen
Simulink
Introduction to Simulink
What is Simulink?
Simulink Overview
http://www.mathworks.com/videos/simulink-overview-61216.html
What is Simulink?
As you see we get the same results as in MATLAB Training, Part II:
SimulaBon Time
Set Initial Value
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
Example 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
%Starting Simulation
sim('simulink_ex2', t_stop, options);
#̇ = −&# + (!
Where ! may be the Control Signal from e.g., a PID Controller
E-mail: [email protected]
Web: https://www.halvorsen.blog