A Guide to MATLAB for Beginners and Experienced Users, Second Edition

Simulink In this chapter we describe Simulink, a MATLAB accessory for simulating dynamical processes and engineering systems. This brief introduction, together with the online documentation, should be enough to get you started using Simulink.
If you want to learn about Simulink in depth, you can read the massive PDF document available at
www.mathworks.com/access/helpdesk/help/pdf_doc/simulink/sl_using.pdf
Here we give a brief introduction for the user who wants to get going with Simulink quickly. You start Simulink by double-clicking on Simulink in the Launch Pad, by clicking on the Simulink button
on the MATLAB Desktop tool bar, or simply by typing simulink in the Command Window. This opens the Simulink library window, which is shown for UNIX systems in Figure 8.1. On Windows systems, you see instead the Simulink Library Browser, shown in Figure 8.2.
To begin to use Simulink, click New: Model from the File menu. This opens a blank model window. You create a Simulink model by copying units, called blocks, from the various Simulink libraries into the model window. We will explain how to use this procedure to model the homogeneous linear ordinary differential equation (ODE) u ? +2 u ? +5 u = 0, which represents a damped harmonic oscillator.
First we have to figure out how to represent the equation in a way that Simulink can understand. One way to do...