0% found this document useful (0 votes)
8 views2 pages

MATLAB Order of Operations Explained

This document discusses the order of operations in MATLAB calculations. It provides 6 examples of expressions and the proper order to evaluate each part, with exponents calculated before addition/subtraction, multiplication/division calculated before addition/subtraction, and expressions in brackets evaluated first when multiple operations are present. The key rules are that powers, multiplication, and division are evaluated before addition and subtraction, and nested expressions in brackets are simplified from the innermost to outermost level.

Uploaded by

Riaz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

MATLAB Order of Operations Explained

This document discusses the order of operations in MATLAB calculations. It provides 6 examples of expressions and the proper order to evaluate each part, with exponents calculated before addition/subtraction, multiplication/division calculated before addition/subtraction, and expressions in brackets evaluated first when multiple operations are present. The key rules are that powers, multiplication, and division are evaluated before addition and subtraction, and nested expressions in brackets are simplified from the innermost to outermost level.

Uploaded by

Riaz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

MATLAB EXERCISE

1. -2^3+9
Order of Calculation: Power before Addition or subtraction

2. 2/3*3
Order of Calculation: Division before Multiplication

3. 3*2/3
Order of Calculation: Division before Multiplication
4. 3*4-5^2*2-3
Order of Calculation: Power before Multiplication then Subtraction

5. (2/3^2*5)*(3-4^3)^2
Order of Calculation: Brackets first then Power followed by Division,
multiplication and then subtraction.

6. 3*(3*4-2*5^2-3)
Order of Calculation: Brackets first then Power followed by Division,
multiplication and then subtraction.

You might also like