0% found this document useful (0 votes)
589 views

NAME: Ma. Clarissa C. Marasigan Section: CS11S1 MATLAB ACTIVITY 1-Fundamentals of MATLAB

The document provides details of a MATLAB activity completed by a student. It includes 13 MATLAB expressions with the corresponding syntax and output. It also includes 2 word problems to be solved using MATLAB, including writing the numerical expressions in MATLAB syntax and finding the output.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
589 views

NAME: Ma. Clarissa C. Marasigan Section: CS11S1 MATLAB ACTIVITY 1-Fundamentals of MATLAB

The document provides details of a MATLAB activity completed by a student. It includes 13 MATLAB expressions with the corresponding syntax and output. It also includes 2 word problems to be solved using MATLAB, including writing the numerical expressions in MATLAB syntax and finding the output.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

MATLAB SYNTAX MATLAB OUTPUT


1. >> 6/6+5

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 ) 

>> sqrt(3 + 4) + pi^2 -


12. ( ) 1
3 + 4 + π 2 − 3 + 2π + (3 − 4 )
2
2
sqrt(3+(1/2) +
sqrt(2*pi + (3 - 4)^2))

>> (13+(-3)^2 + 4*(-


3)+1-[-10-(-
13.
6)])/(((4+5)/(4^2-
3^2*(4-3)-8))+12)

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?

As the result, there is no money left for Peter.


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?

The total boxes of mangoes:

You might also like