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.
http://sourceforge.net/projects/octave/
for a new version of "octave-X.X.XX-windows".
| 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
> cdTo make sure whether the M files are in this directory, type
> lsIf you see the M file, for example "idemo.m," in the screen, you are ready to execute it.