All MATLAB® functions have supporting documentation that includes examples and describes the function inputs, outputs, and calling syntax. There are several ways to access this information from the command line:
- Open the function documentation in a separate window using the doc command:
doc mean % 也可以按键“F1”,极力推荐这一种
- Display function hints (the syntax portion of the function documentation) in the Command Window by pausing after you type the open parentheses for the function input arguments:
mean(
- View an abbreviated text version of the function documentation in the Command Window using the help command:
help mean