MATLAB

Typographical Conventions

Item
Convention
Example
Buttons and keys
Boldface with book title caps
Press the Enter key.
Example code
Monospace font
To assign the value 5 to A, enter
  • A = 5
    
Function names, syntax, filenames, directory/folder names, user input, items in drop-down lists
Monospace font
The cos function finds the cosine of each array element.
Syntax line example is
MLGetVar ML_var_name
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
  • A =
       5
    
Menu titles and items
Boldface with book title caps
Choose the File Options menu.
New terms and for emphasis
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')