Item
|
Convention Used
|
Example
|
Example code
|
Monospace font
|
To assign the value 5 to A , enter
|
Function names/syntax
|
Monospace font
|
The cos function finds the cosine of each array element. Syntax line example is
MLGetVar ML_var_name
|
Keys
|
Boldface with an initial capital letter
|
Press the Enter key.
|
Literal strings (in syntax descriptions in reference chapters)
|
Monospace bold for literals
|
f = freqspace(n, 'whole' )
|
Mathematical expressions
|
Italics for variables Standard text font for functions, operators, and constants
|
This vector represents the polynomial p = x2 + 2x + 3
|
MATLAB output
|
Monospace font
|
MATLAB responds with
|
Menu titles, menu items, dialog boxes, and controls
|
Boldface with an initial capital letter
|
Choose the File menu.
|
New terms
|
Italics
|
An array is an ordered collection of information.
|
Omitted input arguments
|
(...) ellipsis denotes all of the input/output arguments from preceding syntaxes.
|
[c,ia,ib] = union(...)
|
String variables (from a finite list)
|
Monospace italics
|
sysc = d2c(sysd, ' method ' )
|