# Basic Arithmetic Operations in MATLAB

## Introduction

MATLAB is a powerful tool for performing various arithmetic operations. In this guide, we'll explore the fundamental arithmetic operations in MATLAB and provide sample code.

MATLAB allows you to easily perform addition and subtraction. Here's some sample code:

``% Additionresult_addition = 5 + 3; % Result: 8% Subtractionresult_subtraction = 10 - 6; % Result: 4    ``

## Multiplication and Division

You can also multiply and divide in MATLAB. Sample code for these operations:

``% Multiplicationresult_multiplication = 7 * 2; % Result: 14% Divisionresult_division = 20 / 4; % Result: 5    ``

## Exponentiation and Square Root

MATLAB supports exponentiation and calculating square roots. Here's sample code:

``% Exponentiationresult_exponentiation = 2^3; % Result: 8% Square Rootresult_square_root = sqrt(25); % Result: 5    ``

## Order of Operations

MATLAB follows the standard order of operations (PEMDAS/BODMAS) for complex expressions. You can use parentheses to control the order. For example:

``% Complex expressionresult_complex = (5 + 3) * (10 / 2); % Result: 32    ``

## Conclusion

This guide has introduced you to the basic arithmetic operations in MATLAB. You can build upon this knowledge to create more complex calculations and solve various mathematical problems using MATLAB's powerful capabilities.

Enjoy performing arithmetic operations in MATLAB!