Matlab Activity 1-1-1 KEY SOLUTIONS EXAM PDF

Title Matlab Activity 1-1-1 KEY SOLUTIONS EXAM
Author Rob Gabriel Chase
Course Accounting 1
Institution Technological Institute of the Philippines
Pages 5
File Size 449.3 KB
File Type PDF
Total Downloads 268
Total Views 673

Summary

NAME : Malig, Robin Gabriel S. Section: IE22SMATLAB ACTIVITY 1- Fundamentals of MATLABA. Perform the indicated operation using MATLAB syntax. Write the MATLAB syntax and output on the space provided. Upload this in your canvas include the screen shot of your MATLAB.MATLAB SYNTAX MATLABOUTPUT >>...


Description

NAME : Malig, Robin Gabriel S.

Section: IE22S1

MATLAB ACTIVITY 1- Fundamentals of MATLAB A. Perform the indicated operation using MATLAB syntax. Write the MATLAB syntax and output on the space provided. Upload this in your canvas include the screen shot of your MATLAB. MATLAB SYNTAX 1.

>> ans1=(6/6)+5

MATLAB OUTPUT 5

2.

>> ans2=2*(6)^2

72

3. (3+5)(2)

>> ans3=(3+5)*(2)

16

4. 3+5(2)

>> ans4=3+5*(2)

13

>> ans5=4*(3/2)*8

48

>> ans6=(14/4)+(6/2)

6.5000

>> ans7=2^(3^4)

2.4179e+24

>> ans8=3^(5+2)

2187

>> ans9=(3^(5))+(2)

245

j=2^(3^4)

2.4179e+24

>>k=(5+(6*(7/3))2^(2))/((2/3)*(3/(3*6))^(4+(1/2)))

7.1427e+04

5. 6. 7. 8. 9. 10.

7  5  6   2 2 3  11. 1 4  2   3  2    3   3 6  12.





1 2 2 3  4    3  2  3  4  2

>>l=(sqrt(3+4))+pi^2(sqrt((3*(1/2)+(sqrt((2*pi)+(34)^2))))) 10.4663

13.

>>m=(13+((-3)^2)+4*(-3)+1-(-10(-6)))/(((4+5)/((4^2)-(3^2)*(4-3)8))+12)

5

B. Solve the following problem using MATLAB. Write the syntax and the MATLAB out put on the space provided. 1. Peter withdrew 10000 pesos from his bank account today. He uses 5000 to fix his car. Then, he divide the money into 5 equal parts and gave away 4 parts and kept 1 part for himself. He took his wife to the restaurant and spent 600 pesos on meals. The remaining cash was divided among his 5 children for their allowance. Write a numerical expression in MATLAB syntax to represent this situation and then find how much money Peter has now? Solution: Peter withdraw = 10000 pesos Uses= 5000 (10000-5000)/5 - 600 (5000)/5 - 600 1000 – 600 = 400 Peter has 400 pesos left now 2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many boxes of mangoes were there? Solution: Mangoes in each crate = 42 Total Crates = 12 Total Mangoes = total crates x mangoes in one crate Given: 4 mangoes are rotten Therefore, Remaining Mangoes = Total Mangoes – 4 Remaining Mangoes = 500 Boxes Needed = Remaining Mangoes = 500/10 Boxes Needed = 50 So, 50 boxes of Mangoes

42 x 12 = 504 504 – 4 = 500 500/10 = 50

Screenshots of MATLAB activity 1...


Similar Free PDFs