Skip to Main Content Skip to Search
Product Documentation

help - Help for functions in Command Window

Syntax

help
help name

Description

help lists all primary help topics in the Command Window. Each main help topic corresponds to a folder name on the MATLAB search path.

help name displays the help text for the functionality specified by name, such as a function, method, class, or toolbox.

Tips

Input Arguments

name

String that specifies an operator symbol (such as +) or the name of a function, class, method, package, toolbox folder, or other functionality.

Some classes require that you specify the package name. Events, properties, and some methods require that you specify the class name. Separate the components of the name with periods, using one of the following forms:

help className.name
help packageName.className
help packageName.className.name

If name is overloaded, that is, appears in multiple folders on the search path, help displays the help text for the first instance of name found on the search path, and displays a hyperlinked list of the overloaded functions and their folders.

When name specifies the name or partial path of a toolbox folder:

  • If the folder contains a nonempty Contents.m file, the help function displays the file. Contents.m contains a list of MATLAB program files in the folder and their descriptions. If Contents.m exists, but is empty, MATLAB responds with No help found for name.

  • If the folder does not contain a Contents.m file, the help function lists the first line of help text for each program file in the folder.

  • If name is the name of both a function and a toolbox, help displays the associated text for both the toolbox and the function.

Examples

Functions and Overloaded Methods

Display help for the MATLAB close function.

help close

Because close refers to the name of a function and to the name of several methods, the help text includes hyperlinks to the overloaded methods.

Request help for the Database Toolbox™ close method.

help database.close

Package, Class, and Method Help

Display help for the containers package, Map class, and the isKey method.

help containers
help containers.Map
help containers.Map.isKey

Not all packages, classes, and associated methods or events require complete specification. For example, display the help for the throwAsCaller method of the MException class.

help throwAsCaller

Functions in Folder

List all of the functions in the folder matlabroot/toolbox/matlab/general by specifying a partial path.

help general

Alternatives

View more extensive help using the doc command or the Function Browser. To open the Function Browser, click its icon, .

See Also

class | dbtype | doc | lookfor | more | path | what | which | whos

How To

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS