Machine Problem 1A
Machine Problem 1A
Name: Score:
Section: Date:
OBJECTIVES
To familiarize the students in Matlab interface.
To enable the students to use some basic commands.
GRADING SYSTEM
INSTRUCTIONS
A. Opening and closing Matlab.
1. To open Matlab, double click the desktop icon or search and click in the programs.
2. To exit Matlab, either click on Exit Matlab from the File menu or typing quit or exit in the Command Prompt
Window. DO NOT click on the close box on the upper right corner.
MACHINE PROBLEM
Answer the following problems using commands in Matlab. Make sure to indicate your commands in your
submission and .
1. Compute the following using the correct order of operations:
a. 2−4∗(5 3−2+2∗( 5+6 ))
4∗5 3−2
b. 2−
2∗(5+6)
4∗53−2
2−
c. 2
+6
5
2. Compute for the volume of a truncated pyramid with a = 5, b = 3 and h = 10, given the formula:
1
V = ( a2 +ab+ b2 ) h
3
ANSWERS
1.
a. Answer:
Command:
b. Answer:
Command:
c. Answer:
Command:
2. Answer:
Command: