Basics of Matlab & Simulink

tibor.png
Tibor Kasas 2 minute read
1-125.jpg

Matlab is a scientific tool that is designed for scientists and engineers. It is a programming platform with which you can analyze data, develop algorithms and create models and applications.
Matlab is mostly used in industry and education for numerous fields such as signal processing and communications, control systems and various computation.
Here is an example of how to get a transfer function matrix. In this example you can also see how to check controllability and observability. There is also the procedure of calculating the frequency and the period of the oscillations.

tibs2.jpg

Simulink is a great tool for automatic control and digital signal processing, as well as for model-based design. This is because of its tight integration with Matlab. Simulink is a graphical programming environment for modeling, simulating, and analyzing multidomain dynamical systems. The basis of the Simulink interface is a graphical block diagramming tool with a customizable set of block libraries.

tiboo2.png
This is the Simulink library browser

In this simulation scheme you can see a simple nonlinear system with a subsystem called “Nonlinear model”.

tibo3.png
Simple nonlinear system

And here, in the same example, you can see the simulation scheme for recording the response of a linear and nonlinear system model.

tibo4.png
Expanded system

The nonlinear model subsystem that is the centre piece of this system is shown in detail view in the following image.

tibo5.png
Detail view of the nonlinear model