next up previous contents
Next: ISEMPTY Test For Variable Up: Inspection Functions Previous: WHERE Get Information on   Contents

Subsections

WHICH Get Information on Function

Usage

Returns information on a function (if defined). The usage is

   which(fname)

where fname is a string argument that contains the name of the function. For functions and scripts defined via .m files, the which command returns the location of the source file.

Example

First, we apply the which command to a built in function.

--> which fft
Function fft is a built in function

Next, we apply it to a function defined via a .m file.

--> which fliplr
Function fliplr, M-File function in file '/localhome/basu/FreeMat2/help/mtex/../../MFiles/fliplr.m'



Samit K. Basu 2005-03-16