How can I find which file implements a given command?
From within Octave, use
>> 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 .
If the source code is cloned to a local machine, you can edit the repective file and search for something like "