# Simulink getting started guide: tutorial 1

In this tutorial, a brief and concise introduction of MATLAB and one of many tools of MATLAB i.e. Simulink. This is an introductory tutorial and it will explain very basics of MATLAB as well as Simulink. Some of the basic functions and libraries of Simulink are introduced here, and with the help of very basic details a simple example is performed on Simulink and the results are shown. At the end a simple exercise is provided to do it on your own and in the upcoming tutorials I will expect that you have done that exercise wholeheartedly.

MATLAB is a multi-purpose numerical analysis environment. It is a high performance fourth generation programming language used mostly for technical computing. As mentioned earlier it is a multi-purpose programming environment and is used for various problems like, developing algorithms, matrix calculation, running algorithms, data visualization and making an easy to use graphical or simple user interface (UI).

Drawing graphs, either 2-dimensional or 3-dimensional is no more a difficult task when you have MATLAB to perform it. Also it is freely available for students on the website of mathworks, for students who are interested in learning a highly diverse programming environment.

Out of a magnificent number of tools provided by MATLAB, Simulink is one of the widely used and high performance tool. As it is one of the tools of MATLAB it cannot be compared with MATLAB. MATLAB is the father of all. It is provided by MathWorks and it is a graphical programming environment which provides us to simulate, design and execute our desired program in the form of blocks.

For instance, there is a block of summation present in the libraries of Simulink and there is a block of a constant as well as input which can help us to provide the input to that summation box, also there is a block of output and oscilloscope to display the output generated by the summation block. This is just a very simple example, however provides us with a wide range of components which I will discuss further after sometime and throughout this session I will be using a number of components so that any ambiguity about this software will be removed.

• Let’s first open MATLAB to get started with it and then Simulink. In the search bar of your system write matlab (which was already downloaded and installed in the system) as shown in the figure below,

Figure 1: Opening MATLAB

Figure 2: MATLAB starting window

Figure 3: Simulink from command window

Figure 4: icon

Figure 5:  start page

Figure 6: Simulink built in examples

Figure 7: Creating new project

Figure 8: Blank project

Figure 9: Saving the project

Figure 10: Library browser

Figure 11: Library browser icon

Figure 12: Library browser

Figure 13: Commonly used blocks

Figure 14: Logic analyzer

Figure 15: Logical operator and Scope

Figure 16: Constant

Figure 17: Placed components

Figure 18: Running the program

Figure 19: Output

Figure 20: Output

Exercise:

• Explore some of the built-in examples of Simulink and try learning the working of different blocks used in the featured examples.

1. wonderful