N/A
Name: Space character
Uses: Separator
Description: Use the space character to separate row elements in an array constructor,
or the values returned by a function. In these contexts, the space character and comma
are equivalent.
Examples
Separate row elements to create an array:
% These statements are equivalent
A = [12 13; 14 15]
A = [12,13; 14,15]
Separate output arguments in function calls:
% These statements are equivalent
[Y I] = max(A)
[Y,I] = max(A)
N/A
Name: Newline character
Uses: Separator
Description: Use the newline character to separate rows in an array construction
statement. In that context, the newline character and semicolon are equivalent.
Examples
Separate rows in an array creation command:
% These statements are equivalent
A = [12 13
14 15]
A = [12 13; 14 15]
2 Program Components
2-14
Name: Space character
Uses: Separator
Description: Use the space character to separate row elements in an array constructor,
or the values returned by a function. In these contexts, the space character and comma
are equivalent.
Examples
Separate row elements to create an array:
% These statements are equivalent
A = [12 13; 14 15]
A = [12,13; 14,15]
Separate output arguments in function calls:
% These statements are equivalent
[Y I] = max(A)
[Y,I] = max(A)
N/A
Name: Newline character
Uses: Separator
Description: Use the newline character to separate rows in an array construction
statement. In that context, the newline character and semicolon are equivalent.
Examples
Separate rows in an array creation command:
% These statements are equivalent
A = [12 13
14 15]
A = [12 13; 14 15]
2 Program Components
2-14
