% Open the Help Browser doc;
% Help documentation for the 'rand' function doc rand;
% Help documentation for the 'if' keyword doc if;
help works similar to
doc, but it displays the documentation directly in the Command Window and in a compact format.
% List all primary help topics help;
% Help text for the 'rand' function help rand;
% Help text for the 'if' keyword help if;
helpto know quickly what a functionality does, and
docto make an in-depth study of the functionality.
I recommend the following books to learn more on how to get help in MATLAB:
This book was the winner of a 2017 Textbook Excellence Award. The first chapter explains how to get help in MATLAB, among other introductory topics like operators, random numbers generation, and trigonometry.
MATLAB for Engineers (5th Edition)
This excellent book is especially oriented to engineers and scientists who want to learn MATLAB programming. The third chapter explains how to use the help feature, and several built-in functions for elementary math, trigonometry, random numbers, and complex numbers.
I also recommend the following pages in the MATLAB help documentation, and the other tutorials in this series.
doc doc; doc help;
- Getting Help in MATLAB
- Valid Identifiers in MATLAB
- Reserved Words in MATLAB
- Comments in MATLAB
- Multiline Statements in MATLAB
- How to Execute a Command Automatically When MATLAB Starts
- How to Execute a Command Automatically When MATLAB Quits
- How to Save the Workspace Variables to a .MAT File in MATLAB
- How to Load the Variables in a .MAT File into the Workspace in MATLAB
I hope you have learned how to get help in MATLAB. The source code developed in this tutorial is available at this page.