edit <FILEAME>
issued at the Octave
prompt (if you want to open a function in the load path of Octave,
it is enough to give the name, need not give the full path).
if
–end
block for a better
overview of the code), and probably interacts well with the
debuggers.
cd <new-directory>
(cd comes from Change Directory; directory is the
same as folder)
pwd
(pwd = print name of current/working directory)
ls
or dir
(ls = list).
ls
<directory>
.
octave:> FILENAME
to execute the file FILENAME.m.
octave:2> which plot
`plot' is a function from the file /usr/share/octave/3.2.4/m/plot/plot.m
octave:3>
says that the command plot
is in the above file (the
location depends on your installation).
You can open it with an editor as discussed above. If you use
Octave's editor, it is enough to do edit plot
because plot.m is in the load path.
path
; this can also be used to
change the path.