Академический Документы
Профессиональный Документы
Культура Документы
Your Name:…………………………………………
Student ID:………………………………………….
Date/Time:………………………………………….
2. Let x = [2 5 1 6]
4. Evaluate the following MATLAB expressions by hand and use MATLAB to check the
answers
a. 2 / 2 * 3
b. 6 - 2 / 5 + 7 ^ 2 - 1
c. 10 / 2 \ 5 - 3 + 2 * 4
d. 3 ^ 2 / 4
e. 3 ^ 2 ^ 2
f. 2 + round(6 / 9 + 3 * 2) / 2 - 3
Page 1 of 3
Taylor’s University Computing Applications for Engineers
School of Engineering (ENG60104)
g. 2 + floor(6 / 9 + 3 * 2) / 2 - 3
h. 2 + ceil(6 / 9 + 3 * 2) / 2 - 3
xn = (-1)n+1/(2n-1)
Add up the elements of the version of this vector that has 100 elements.
7. Suppose that x=2 and y=5. Use MATLAB to compute the following
3
yx 3
xy
(a) x− y (c) 2
3x 4( y−5)
(b) 2 y (d) 3(x −6)
8. Given a vector, t, of length n, write down the MATLAB expressions that will correctly
compute the following:
a. ln(2 + t + t2)
b. et(1 + cos(3t))
c. cos2(t) + sin2(t)
d. tan-1(t) (this is the inverse tangent function)
e. cot(t)
f. sec2(t) + cot(t) - 1
9. The volume of a cylinder of height h and radius r is given by V= π r2h. The cylinder is 80
cm tall and has a radius of 50 mm. Use MATLAB to calculate the volume (cm3) of the cylinder.
10. We want to reconstruct another cylinder with volume 30 percent greater of the cylinder in Q9
but having the same height. What is the radius of the new cylinder?
Page 2 of 3
Taylor’s University Computing Applications for Engineers
School of Engineering (ENG60104)
Page 3 of 3