Octave in your own PC

Octave are high-level computational packages primarily intended for solving problems in linear algebra, and are mostly compatible. While Matlab is only commercially available, Octave is free under the terms of the Free Software Foundation's GNU General Public License. (You may use Matlab in any of university computer labs. For information on locations and hours, visit http://www.tntech.edu/cc/labs/.)

Download OCTAVE. GNU Octave is available for Windows and Linux (but not for Mac).

M files. You will be able to use external Matlab/Octave codes called "M files". Here are a few M files we might introduce in class.

idemo.m idemo('[M file]') executes "M file" line by line. In Matlab, you can call it by

idemo(uigetfile('*.m','Load M file'))

In Octave you have to set

default_eval_print_flag = 1

to display the output properly.
rref.m R = rref (A, tol) returns the reduced row echelon form of A.
pmatrix.m pmatrix(n) generates an n-by-n probability transition matrix consisting of random entries.
GNU Octave Repository Here is the place to visit; you can find many custom scripts, functions and extensions for GNU Octave.

Use M files in your PC. Save M files of your interest into your own PC. If you are using OCTAVE, try to save it under "C:\Program Files\GNU\Octave\home\octave".

Run "matlab/octave" and at the screen with prompt ">" type

> cd [the directory where M files are saved]
If you are using OCTAVE and save M files under "C:\Program Files\GNU\Octave\home\octave", simply type
> cd
To make sure whether the M files are in this directory, type
> ls
If you see the M file, for example "idemo.m," in the screen, you are ready to execute it.