Professional Documents
Culture Documents
Arithmetic Operators
Arithmetic Operators
Arithmetic Operators
01/01/2023
For example, the following are all examples of arithmetic statements in MATLAB:
y = 3 + 5
z = x * y
a = b / c
d = a ^ 2
Arithmetic Operators
1. +: Add
2. -: Subtract
3. *: Multiply
4. /: Divide
5. \: Left matrix division (also known as "mldivide" or "backslash")
6. .\: Element-wise left matrix division
7. ./: Element-wise right matrix division
8. .^: Element-wise exponentiation
9. ^: Exponentiation (matrix power)
These operators can be used in arithmetic statements to carry out a broad range of
mathematical operations, including fundamental calculations, algebraic operations, and
more complex computations.