NAME: Ma. Clarissa C. Marasigan Section: CS11S1 MATLAB ACTIVITY 1-Fundamentals of MATLAB
NAME: Ma. Clarissa C. Marasigan Section: CS11S1 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.
2. >>2*(6)^2
3. (3+5)(2) >>(3+5)*(2)
4. 3+5(2) >>3+5*(2)
5. >> 4*(3/2)*8
6. >>3+(2/4)+(6/2)
7. >> 2^(3^4)
8. >>3^(5+2)
9. >>3^5+2
10. >>2^(3^4)
7 >> (5+6*(7/3)-
5 + 6 − 2 2 2^2)/((2/3)*(3/(3*6))^(
11.
3 4 +1/2))
1
4+
2 3 2
3 (3)(6 )
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 divides 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?