WHICH Get Information on Function
Section: Inspection Functions
UsageReturns information on a function (if defined). The usage is
fname is a
string argument that contains the name of the
function. For functions and scripts defined
.m files, the
which command returns the location of the source
y = which(fname)
will return the filename for the
.m file corresponding to the given
function, and an empty string otherwise.
ExampleFirst, we apply the
whichcommand to a built in function.
--> which fft Function fft is a built in function
Next, we apply it to a function defined via a
--> which fliplr Function fliplr, M-File function in file '/home/basu/dev/branches/FreeMat4/src/toolbox/array/fliplr.m'