Week 1 Part 5 Fundamentals
Week 1 Part 5 Fundamentals
Arithmetic functions include operators for simple operations like addition (+),
multiplication (x), subtraction (-), division (/), and powers (^) (See cheat sheet for
Operator and Special Characters).
x1 = (3 - 2)*(3 + 1)^2
© 2023 Introduction to Programming in MATLAB (1), Fundamentals 4
Mathematical Functions
Now you try, write the code for the below equation:
A_circle = pi*5^2
The area of a circle with radius of 5 units is , check that the answers match.
You can click on the help icon, , if you need more information on the function and how
to use it. You can also right-click on the function and go to Help to open the related
documentation page. Let us try use one of the built-in functions by considering the
following question.
• Week_1_Part_5_Fundamentals.mlx