( )
Name: Parentheses
Uses:
• Operator precedence
• Function argument enclosure
• Indexing
Description: Use parentheses to specify precedence of operations, enclose function input
arguments, and index into an array.
Examples
Precedence of operations:
(A.*(B./C)) - D
Function argument enclosure:
plot(X,Y,'r*')
C = union(A,B)
Indexing:
A(3,:)
A(1,2)
A(1:5,1)
More Information
• “Operator Precedence” on page 2-32
• “Array Indexing”
MATLAB Operators and Special Characters
2-9
Précédent

- 59/1450

Suivant