GNU Octave and MATLAB control toolbox
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Add files via upload Jul 23, 2018
sourcecode
LICENSE
Linear Quadratic Regulators.pdf
README.md
TODO.md
Table of functions.odt
Table of functions.pdf
Updates.md
listOfFunctions

README.md

Matavecontrol V6.2

Matavecontrol is a basic toolbox for control engineering. The toolbox can be used for both GNU Octave and MATLAB®. Easy to use and easy to install. The main focus on matavecontrol is to offer a control toolbox which can be used in both GNU Octave and MATLAB®. Matavecontrol has the same function names as MATLAB®'s Control System ToolBox, but the time discrete functions are included in the time continuous functions. Also the library is a very basic library so other developers can fast dive into the code.

Typical use

To use Matavecontrol, you should allways start with to create a transfer function or a state space model. Then you can use that mathematical model in almost all the function of Matavecontrol.

Here is some examples when I use Matavecontrol. MATLAB pictures are from Umeå University.

Creating a transfer function in MATLAB®

alt text

Creating a transfer function in GNU Octave

alt text

Create a bode diagram plot in MATLAB®

alt text

Create a bode diagram plot in GNU Octave

alt text

Create a state space model in MATLAB®

alt text

Create a state space model in GNU Octave

alt text

Do a step simulation in MATLAB®

alt text

Do a step simulation in GNU Octave

alt text

Convert a time continuous transfer function to a discrete transfer function in MATLAB®

alt text

Convert a time continuous transfer function to a discrete transfer function in GNU Octave

alt text

Do a nyquist diagram plot in MATLAB®

alt text

Do a nyquist diagram plot in GNU Octave

alt text

Model Predictive Control

alt text

Install

To install Matavecontrol, download the folder "sourcecode" and place it where you want it. Then the following code need to be written in the terminal of your MATLAB® or GNU Octave program.

path('path/to/the/sourcecode/folder/where/all/matave/files/are/matavecontrol', path)
savepath

Example:

path('/home/hp/Dokument/Reglerteknik/matavecontrol', path)
savepath

Important! All the .m files need to be inside the folder matavecontrol if you want the update function to work.

Update

Write this inside the terminal. Then Matavecontrol is going to download new .m files to matavecontrol from GitHub

updatematavecontrol