Professional Documents
Culture Documents
Instructions:
1. Assignment to be done INDIVIDUAL only.
2. Follow the sample printed guideline for the correct format.
3. Submit hard copy only with the following instruction:
a) Written answer Question 1, and
b) Printed answer (Print screen, then paste and crop both script (if required) and
output in Command Window) Question 2.
4. Command input in Command Window must always starts with name, matrics number,
group and clock for Question 2.
5. Dateline of submission: 5th May 2015, Monday, 5:00pm.
______________________________________________________________________________
Guideline:
i)
(3x) 3
5e 3
2
[1 marks]
ii)
35 43
53 145
[1 marks]
iii)
8 log10 (7) + ln 8
[1 marks]
iv)
8 cos 1 (7)
[1 marks]
v)
5e ( 2.1) 33
[1 marks]
b) Predict the MATLAB output of writing the below code in Command Window:
i)
x = 1 * 3 * 7
[1 marks]
ii)
[1 marks]
iii)
x = linspace(5, 20, 7)
[1 marks]
iv)
x = [(3:6) 3 7 3]
[1 marks]
v)
eye(4)
[1 marks]
b.
c.
c) The surface area of a sphere is 4r2. Solve the surface area of a sphere with a radius of 20
cm.
(3 marks)
d) Use MATLAB to evaluate
at = 5.
8 3 9 2 7
10 3 + 5 2 3 7
(3 marks)