Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

LAB EXER 1 (Matlab as Calculator) 3Q2324

Name _Lacamara, Bryle Jayson T.____________________ Date Posted _02/27/2024___

Evaluate the following using MATLAB. Observe the correct syntax.


A. Perform as indicated. (Define your own variable unless stated.)

Syntax Results
1. 2{– 4 – [6 + 5 +3 (7 – (1 + 9)) + 12] – 2} + 5 -35

−5−8 8−(−4) -1.6389


2. ÷ −2
4−(−2) 3−5

2 −1 0.2505
3. Suppose that x = 3 and y = 4 . Find the value of (𝑦 − 𝑥 5 ) named
three.

4. Assuming that the variables a, b, c, d and f are scalars, write 5.03


MATLAB statements to compute and display the following
expressions. Test your statements for the values a = 1.12, b = 2.34,
c = 0.72, d = 0.81, f = 19.82. Express your answer in two decimal
places.
𝑓
𝑟=1 1 1 1
+ + +
𝑎 𝑏 𝑐 𝑑
5. For the values x = 5 + 3i, y = – 6 + 7i. Evaluate 4x/y2 called -0.18
complex.

6. The area of a rhombus is 143 m2. If the longer diagonal is 26m find 11.0 m
the shorter diagonal in inches named D1.

7. Determine the measure of an edge of cube whose total surface 5.00


area is 150in.

8. If the longest side of a right triangle is 5.5cm and the shortest side 6.41
is 3.3cm, find third side named eight.

9. An employee borrows Php65,000 for 10 months at an interest rate Int = 6,500


of 12% per year. Find the interest earned called Int and the total Value = 71,500
amount he has to pay named Value.
B. In the command window, take a screenshot and paste here for validation.
For each number always start with your full name as comment(%) statement.

1 & 2:

3.

4.
5.

6.

7.

8.
9.

You might also like