Hi guys, this is a short tutorial where I’m gonna explain how to install Octave.

I have never used Octave before. During my bachelor degree, the software I used the most was MATlab. However, Octave is a similar software but with the advantage that it is developed under the GNU project license. This means that Octave is a free software project and you can download it, use it for free. Also, you can help and collaborate in Octave’s development.

So, first of all we need to go in here and download the Windows .exe file. By December 2016, the latest version is Octave 4.2.0. We follow the install steps, which are pretty easy and once it has finished, we can proceed to work on it.

repository

I suggest that you follow the suggestions given by the Install Wizard. This will do the following:

  • Two Shortcuts will be created on your desktop. One will execute Octave in the command line mode and the other one will use the GUI.
  • Octave will be installed in C:\Octave\Octave-4.2.0.

Command-line execution

One of the first thing I noticed about Octave, is that user can use command line to work. As a MATlab user, I’m really used to the GUI environment. However, we need to be prepared if you need to work on a LINUX computer without a graphic interface. Also, you look more bad-ass!

  1. The easiest way is to use the Shortcut Octave-4.2.0 (CLI). CLI stands for Command Line Interface.Shortcut.PNG
  2. The second way is moving to the folder where Octave was installed. If you followed the Install Wizard, go to C:\Octave\Octave-4.2.0\bin. Once located in the folder, open a new command line prompt and run the following command: octave –no-gui

Folder.PNG

Both ways will initialize Octave.

Quick Octave Test

  1. First we are going to create a matrix of size 2 x 2, called matrixOne, using spaces to input the values of each row.
  2. On the other hand, the matrix matrixTwo, will be created using commas between the values of each row. In both cases, we will use a semicolon (;), to declare a new row.
  3. Finally we are going the product between both matrix in order to obtain the new result as matrixResult;

test

Conclusion

  • It is really easy to install and start working with Octave.
  • I didn’t look at any tutorial to do this quick test. I only used my MATlab knowledge. The syntax is the same as in MATlab.

 

Questions? Write a comment and I’ll help you ASAP.

 

Advertisements