doc - Documentation in system web browser - MATLAB (original) (raw)

Main Content

Documentation in system web browser

Syntax

Description

doc opens the documentation in a new tab in your system web browser. If your system web browser is open but not visible, thendoc brings it to the foreground.

doc [name](#bth4fte-name) displays documentation for the functionality specified by name, such as a function, class, or block.

example

Examples

collapse all

Display the reference page for the abs function.

Display the reference page for the handle class.

Display the reference page for the findobj method in the handle class.

Display the reference page for the Map class in the containers package.

Display formatted help text for a custom class.

The file sads.m is an example custom class file. Display the formatted help text for the class. Because the help text follows MATLAB conventions, MATLAB displays the help text in a separate window.

Display the help for the steer method of the sads class. MATLAB displays the help text in a separate window.

Input Arguments

collapse all

Name of functionality, such as function, class, or block, specified as a character vector. Alternatively, an operator symbol.

Some classes and other packaged items 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, such as:

doc className.name doc packageName.name doc packageName.className.name

Methods for some classes are not accessible using thedoc command; instead, use links on the class reference page.

Tips

Version History

Introduced before R2006a

expand all

When you access the documentation from an installed version of MATLAB®, the documentation now opens in your system web browser. Previously, the documentation opened in the Help browser. As part of this change, the Help browser has been removed.