Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About Simulink

Simulink is a toolbox of MATLAB that can be used for modeling, analyzing and simulating dynamical systems. Here, we focus on the use of Simulink on the use with ordinary differential equations.

Simulating the dynamical behavior of a system is important in engineering. Many systems can be written as a differential equation, such as:

describing the movement of a single mass, on which an actuation force $u$ is

 is applied. For some simple differential equations, trajectories

 of $x(t)$ of the system can be computed analytically. Many of these analytical solutions have been implemented in MATLAB and can be obtained with the command dsolve.

However, many systems found in engineering or physics are described by more complex differential equations, for which no analytical solution is known or even exists. Trajectories of these systems can be approximated numerically. Hereto, solvers are developed that approximate the change of the state variables over a small time step. Herewith, step by step, an approximation of the trajectory is found. For example, the MATLAB functions ode23 and ode45 are numerical solvers. Simulink is an other tool in MATLAB using numerical solvers.describing the movement of a single mass, on which an actuation force $u$ is

 is applied. For some simple differential equations, trajectories

 of $x(t)$ of the system can be computed analytically. Many of these analytical solutions have been implemented in MATLAB and can be obtained with the command dsolve.

Use of simulink has some advantages over the use of the functions ode23 and ode45. Simulink has a graphical interface, such that the structure of the system can be clearly visible. Inputs, such as a discontinuous signal

for system (1) can be easily applied. Furthermore, real time applications are possible.



Panel
borderColor#dfe1e5
bgColor#eff9ff
borderWidth2
titlePage content

Table of Contents



Panel

How to download and install Simulink

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt metus diam, id consectetur nulla bibendum eu. Vestibulum sit amet tortor ultricies, volutpat nunc id, malesuada risus. Sed iaculis auctor felis dignissim vestibulum. Fusce molestie, ligula a aliquam tristique, eros diam vestibulum tortor, non efficitur erat dui sit amet eros. Quisque pharetra tempor turpis, vel pellentesque dolor vestibulum et. Morbi vel ex varius velit rutrum convallis. Proin vestibulum sapien ut aliquam dapibus.
  • To download and install Simulink you already need a working version of MATLAB, see parent page for tutorial.
  • In the command window enter "simulink" and press "enter"
  • Matlab will prompt that an instance of Simulink is not yet installed. Click the red text and it will redirect you to the add-on browser.
  • Follow the instructions given by the add-on browser to download and install Simulink. Warning, it is a rather large download (1GB).
  • MATLAB will now restart. You may now launch simulink by again entering "simulink" into the command window and press "enter"




Panel

Getting started with Simulink

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt metus diam, id consectetur nulla bibendum eu. Vestibulum sit amet tortor ultricies, volutpat nunc id, malesuada risus. Sed iaculis auctor felis dignissim vestibulum. Fusce molestie, ligula a aliquam tristique, eros diam vestibulum tortor, non efficitur erat dui sit amet eros. Quisque pharetra tempor turpis, vel pellentesque dolor vestibulum et. Morbi vel ex varius velit rutrum convallis. Proin vestibulum sapien ut aliquam dapibus.

  • Creating a simple model
    • Launch Simulink from MATLAB command window by entering "simulink" and press "enter"
    • Choose "Blank model" in the menu prompted → Create model
    • Save the model (Ctrl + S), File→ Save
  • Two methods to add a component/block
    • Either by using the "Simulink library" found at the upper toolbar
    • Or by pressing "Tab" and searching components. Press enter to select a component
  • Run a simulation (Ctrl + T) by pressing the big green button on the toolbar



Panel

Useful tutorials

Panel

Useful tutorials

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tincidunt metus diam, id consectetur nulla bibendum eu. Vestibulum sit amet tortor ultricies, volutpat nunc id, malesuada risus. Sed iaculis auctor felis dignissim vestibulum. Fusce molestie, ligula a aliquam tristique, eros diam vestibulum tortor, non efficitur erat dui sit amet eros. Quisque pharetra tempor turpis, vel pellentesque dolor vestibulum et. Morbi vel ex varius velit rutrum convallis. Proin vestibulum sapien ut aliquam dapibus.




BibTeX Display Table