119k views
3 votes
Basic MATLAB computations: Set up variables x = 6 and y = 5, then compute xy, and x/(3y).

User SRaj
by
7.8k points

1 Answer

5 votes

Final answer:

To compute xy, multiply x by y. To compute x/(3y), divide x by the product of 3 and y.

Step-by-step explanation:

To perform basic computations in MATLAB, you can set up variables x = 6 and y = 5. To compute xy, you can simply multiply x by y, which in this case would be 6 multiplied by 5, resulting in 30. To compute x/(3y), you can divide x by the product of 3 and y, which would be 6 divided by (3 multiplied by 5), resulting in 6 divided by 15, or 0.4.

User Zerium
by
7.5k points