| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
| On this page… |
|---|
Using the Help Browser to Access Documentation, Examples, and Demos |
| To... | Try This | More Information |
|---|---|---|
| Look for getting started guides, code examples, demos, and more. | In the Help browser contents pane, expand the listing for a product. | Browsing for Documentation and Demos |
| Find information about any topic. | In the Help browser search field, type words you want to find in the documentation. Then press Enter. | Searching for Documentation and Demos |
| Find a function and get help for it in a temporary window. | Select Help > Function Browser, then search or browse. | Finding Functions Using the Function Browser |
Get syntax and function hints while using the Command Window and Editor. | Use colors and other cues to determine correct syntax. While entering a function, pause after typing the left parenthesis. A summary of syntax options displays in a temporary window. | |
| View help for a function or block. | Run doc name to display the reference page in the Help browser. For quick help in the Command Window, run help name. Sometimes, the help text shows name in all uppercase letters to distinguish it. When you use name, do not use all uppercase letters. | doc reference page help reference page |
| Get specific help while using a tool. | Use the context-sensitive help, which some tools provide. Access the help using standard methods, such as Help buttons and context menus. | See the documentation for a tool to learn about any special context-sensitive help available. |
| Check code for problems and get recommendations to maximize performance and maintainability. | In the Editor, view M-Lint messages. | Checking M-File Code for Problems Using the M-Lint Code Analyzer |
To open the Help browser, from any desktop tool, select Help > Product Help.
The Help browser shows Contents and Search Results in the left pane. When you select an item in the left pane, the right pane displays that page of documentation or that demo.
Use the Help browser to find and view documentation and demos for all installed MathWorks products. To use documentation and demos for only some of the installed products, see Filter by Product — Specifying Products Used in the Help Browser.

In the Help browser Search field, enter the words you want to find. Search finds pages containing all the words, unless you use any of the syntax options described in the following table.
| Option | Syntax | Example |
|---|---|---|
| Exact phrase | " " (quotation marks) | "word1 word2" |
| Wildcards in place of characters, for partial word searching | * | word* |
| Some of the words | OR | word1 OR word2 |
| Exclude words | NOT | word1 NOT word2 |
For example, enter plot tool* label.
Press Enter.
Results appear in the Search Results pane. An icon indicates the type of result. See Types of Information in the Help Browser.

Arrange results:
The default sort order is by relevance. Change the order by clicking the column header for Type or Product.
For results sorted by Type or Product, you can collapse and expand results for each type or product group. To expand or collapse all groups, right-click in the results pane, and select the option you want from the context menu.
For example, to focus on introductory material, do the following. Click the Type column header. Right-click and select Collapse All. Then expand the Getting Started group.
Select a result to view the page.

See also Getting Better Search Results.
You can find information by looking at a hierarchical view of documentation and demos.
In the Help browser, click the Contents tab.
View the types of information available for a product by expanding the product in the Contents listing. For example, expand MATLAB by clicking +.
View available topics within a type by expanding the type for a product. For example, select MATLAB > Demos > Graphics.
Expand one topic by clicking +. Or select the topic and press the right arrow key.
Expand all topics within the selected topic by pressing the * key on the numeric keypad.
To view an item in the display pane, select it. For example, select MATLAB > Demos > Graphics > Square Wave from Sine Waves.

Review Workspace Before Running Demos and Code in Examples. M-file demos and some code in examples run as scripts. Scripts store variables in the base workspace. There could be name conflicts if you have variables in the base workspace and the demo or code creates a variable with the same name. For example, the demo could overwrite your data. Compare the base workspace to a demo or code example before you run it, and address any name conflicts.
Running an M-File Demo. For an M-file demo displayed in the Help browser:
Click Open filename in Editor. For example, with the MATLAB > Demos > Graphics > Square from Sine Waves demo displayed, click Open xfourier.m in the Editor. xfourier.m is the name of the demo file.
With the file open in the Editor, click Run
.
The following figure illustrates the results of running the MATLAB > Demos > Graphics > Square Wave from Sine Waves demo.

Running Code That Is in Documentation or a Demo. When the displayed documentation page or demo contains code, you can select some or all of the code and run it:
Prepare variables the code uses, if necessary to run a selection of code.
Select the code.
Right-click and select Evaluate Selection.
To view the contents of a variable, right-click the variable and select Open Selection.
Code in the documentation includes small fragments, as well as complete executable example files. The documentation example files are in matlabroot/help/.../examples for each product. The files in examples are not on the search path. When the documentation instructs you to run an example file, first make the file accessible to MATLAB in one of these ways:
Change the current folder to the folder containing the example file.
Add to the search path the folder containing the example file.
Copy the example file to another location that MATLAB can access.
For More Information There are additional options for getting help. See Help, Demos, and Related Resources. |
![]() | Command Window and Command History | Workspace Browser and Variable Editor | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |