Archive for the ‘octave’ category

Octave notes

December 10th, 2010

1. use extension files (.m files)

if the file is not in the working directory, add the file directory first by:

octave:1> addpath("/home/user/path/")

and then you can check the path by:

octave:2> path

Note:

1) the name of the extension file should be the same as the function defined inside. (right?)

2) you can crate and edit the extension file (if you have installed emacs) by:

octave:3> edit XXX.m

1. use extension files (.m files)if the file is not in the working directory, add the file directory first by:octave:1> addpath(“/home/user/path/”)and then you can check the path by: octave:2> path

Note: 1) the name of the extension file should be the same as the function defined inside. (right?)2) you can crate and edit the extension file (if you have installed emacs) by:

octave:3> edit XXX.m