Professional Documents
Culture Documents
Lecture 03 1
Lecture 03 1
Lecture | 03
Solving the mathematical formulas and equations using script file in MATLAB:
Lecture | 03
Solving the mathematical formulas and equations using script file in MATLAB:
1. Identify the input elements. It is the stage which the input variables
2. Operations of processing. are determined in the memory.
3. Output Device.
Using specific value(s) via the program’s
code or allowing the user to enter that
value(s) during the program is run in the
command window.
Lecture | 03
Solving the mathematical formulas and equations using script file in MATLAB:
Lecture | 03
Solving the mathematical formulas and equations using script file in MATLAB:
Lecture | 03
Examples: eg, Q1 & Q2
Homework: Q3 & Q4
Lecture | 03
eg: Using MATLAB to find the two variables of the general formula:
−𝑏 ± 𝑏 2 − 4𝑎𝑐
𝑥=
2𝑎
Lecture | 03
1- Identify the input elements.
2- Operations of processing.
3- Output Device.
Examples: Q1 & Q2 | Homework: Q3 & Q4
Q1> Compute using a script file in MATLAB the square & cubic of an inserted element?
Q4> Using MATLAB find the area and perimeter of the rectangle?
area=a*b
per=2(a+b)
Lecture | 03