MATLAB as A Calculator
• Operators: + - * / ^
• Result is computed, and displayed as ans
• Precedence rules:
• Left-to-right within a precedence group
• Precedence groups are (highest first):
1. Parenthesis ()
2. Power (^)
3. Multiplication and division (*, /)
4. Addition and subtraction (+, -)
Applications of MATLAB in Engineering Y. -F. Kuo
4