Intro to SIMULINK


    What is SIMULINK?

    SIMULINK is an object oriented dynamic simulation package.


    For a closer look at MATLAB and SIMULINK, type 'demo' at the MATLAB prompt.


    Now type 'simulink' at the MATLAB prompt. The window which opens contains all the blocks available for building simulation flowsheets. To create your own flowsheet, click on 'File', then on 'New'. A blank window will appear. Double-clicking on any of the icons in the simulink menu will open a submenu which contains useful blocks. Double click on 'Linear', and drag a 'Transfer Fcn' (transfer function) block onto your new page. Now from 'Sources', drag a clock and a step function into your new simulation window. From 'Sinks', get two 'To Workspace' blocks. To connect blocks, click on the small arrow from one block (the 'clock' for example), and hold the left mouse button down while you drag the arrow to the port of another block ('To Workspace', for instance). You'll know two blocks are connected when a large black arrow forms at the destination of the connection. (See the figure below) To change parameters within a given icon, double-click on that icon. A list of parameters will appear, and by clicking in the given boxes and using the 'Backspace' key, you can change the parameter values.

    Click on the 'Simulation' menu, and select 'Parameters'. In this menu you can change the integration scheme, simulation start and stop time, integration maximum and minimum step size, and the tolerance (for certain integration routines). To start a simulation, select 'Simulation' and 'Start'.


    Take some time now to familiarize yourself with the MATLAB demo. To begin the demo, type 'demo' at the matlab prompt.