Desktop Tools and Development Environment Previous page   Next Page

View Function Reference Pages--the doc Function

To view the reference page for a function, block, or property in the Help browser, use doc. For example, type

doc format

to view the reference page for the format function.

Overloaded Functions with the doc Function

When a function name is used in multiple products, it is said to be an overloaded function. The doc function displays the reference page for the first function on the MATLAB search path having that name, and displays a hyperlinked list of the overloaded functions in the Command Window.

For example, using the default search path

doc set

displays the reference page for the MATLAB set function in the Help browser. The Command Window displays a hyperlinked list of the set functions located in other directories, such as

database/set

which is the set function for the Database Toolbox. Click a link to go to that set reference page.

To directly get the reference page for an overloaded function, specify the name of the directory containing the function you want the reference page for, followed by the function name. For example, to display the reference page for the set function in the Database Toolbox, type

doc database/set

Previous page  Help Functions Getting Help in the Command Window--the help Function Next page

© 1994-2005 The MathWorks, Inc.