Developer FAQ

From Octave
Revision as of 16:39, 3 October 2018 by Siko1056 (talk | contribs) (Add Category:Development some extensions.)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

How can I find which file implements a given command?

From within Octave, use which:

>> which help
 'help' is a function from the file /some/path/m/help/help.m

If the desired function is a m-file, one can simply edit it inside the GUI, just type:

>> edit help

Some functions are already compiled (a.k.a. built-in functions), for example:

>> which addpath
 'addpath' is a built-in function from the file libinterp/corefcn/load-path.cc

This function is to be found in Octave's source code, in this case at [1].

If the source code is cloned to a local machine, you can edit the repective file and search for something like " (addpath,".