octave

GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.

The newer version of Octave has a GUI almost identical to Matlab and with the extensive package database over at Octave Forge, transitioning from Matlab is really seamless. Most Matlab programs will run in Octave without modifications. However, Octave allows some syntax that Matlab doesn’t. The advantage to using Octave is the price-point. It’s completely free.

Download Octave here.

octave_gui

Basic Example: Plotting and Trendlines

As a basic introductory example, below is a basic example of plotting and calculating a trendline.

This results in a simple scatter plot of our sample data with a second order trendline. The coefficients for the trendline are housed in the variable “p”. The resulting plot can be found below.

octave_trendline

Leave a Reply

Your email address will not be published. Required fields are marked *