**Mathematical Operators**

The evaluation of expressions is accomplished with arithmetic operators as we use them in scientific calculators. Note the addtional operators shown in the table below:

Operator | Name | Description |
---|---|---|

+ | Plus | Addition |

- | Minus | Subtraction |

* | Asterisk | Multiplication |

/ | Forward Slash | Division |

\ | Back Slash | Left Matrix Division |

^ | Caret | Power |

.* | Dot Asterisk | Array multiplication (element-wise) |

./ | Dot Slash | Right array divide (element-wise) |

.\ | Dot Back Slash | Left array divide (element-wise) |

.^ | Dot Caret | Array power (element-wise) |

#### Note:

#### Important:

#### Important:

#### Important:

#### Note:

#### Example 1

The following figure illustrates a typical calculation in the Command Window.

**Operator Precedence**

MATLAB allows us to build mathematical expressions with any combination of arithmetic operators. The order of operations are set by precedence levels in which MATLAB evaluates an expression from left to right. The precedence rules for MATLAB operators are shown in the list below from the highest precedence level to the lowest.

- Parentheses ()
- Power (^)
- Multiplication (*), right division (/), left division (\)
- Addition (+), subtraction (-)