
If a contents file does not exist, help displays the H1 lines of all the files in the directory. Typing help topic, where topic is a directory name, displays the comment lines in the Contents.m file located in that directory.

The contents files are the M-files named Contents.m within each directory. The help function lists all help topics by displaying the first line (the H1 line) of the contents files in each directory on the MATLAB search path.

You can write help descriptions for your own M-files and toolboxes using the same self-documenting method that MATLAB M-files and toolboxes use. The MATLAB help system, like MATLAB itself, is highly extensible. For example, the javaObject function uses mixed case.Ĭreating Online Help for Your Own M-Files Some functions for interfacing to Java do use mixed case the M-file help accurately reflects that and you should use mixed case when typing them. When typing function names, however, use lowercase characters. M-file help displayed in the Command Window uses all uppercase characters for the function and variable names to make them stand out from the rest of the text.
#MATLAB HELP LINE FULL#
It is not necessary to give the full pathname of the directory the last component, or the last several components, are sufficient.ĭisplays the M-file help for function that belongs to the toolbox directory.ĭisplays M-file help describing the syntax used in MATLAB commands and functions. If function is overloaded, help displays the M-file help for the first function found on the search path, and lists the overloaded functions.ĭisplays the contents file for the specified directory named toolbox. Lists all operators and special characters, along with their descriptions.ĭisplays M-file help, which is a brief description and the syntax for function, in the Command Window. Each main help topic corresponds to a directory name on the MATLAB search path.

Lists all primary help topics in the Command Window. Help (MATLAB Functions) MATLAB Function Referenceĭisplay help for MATLAB functions in Command Window
