;
Name: Semicolon
Uses:
• Signify end of row
• Suppress output of code line
Description: Use semicolons to separate rows in an array creation command, or to
suppress the output display of a line of code.
Examples
Separate rows to create an array:
A = [12,13; 14,15]
Suppress code output:
Y = max(A);
Separate multiple commands on a single line (suppressing output):
A = 12.5; B = 42.7, C = 1.25;
B =
42.7000
More Information
• vertcat
2 Program Components
2-8
Name: Semicolon
Uses:
• Signify end of row
• Suppress output of code line
Description: Use semicolons to separate rows in an array creation command, or to
suppress the output display of a line of code.
Examples
Separate rows to create an array:
A = [12,13; 14,15]
Suppress code output:
Y = max(A);
Separate multiple commands on a single line (suppressing output):
A = 12.5; B = 42.7, C = 1.25;
B =
42.7000
More Information
• vertcat
2 Program Components
2-8
