Professional Documents
Culture Documents
SMA102-MATLAB Exercise 1
SMA102-MATLAB Exercise 1
SMA102-MATLAB Exercise 1
To find the humps function type >> plot(humps). You will generate the curve below.
100
90
80
70
60
50
40
30
20
10
0
0 5 10 15 20 25
Question 1
(i) Use quad function in matlab to integrate the humps function from -1 to 2.
+∞ 1
(ii) Use quadgk function in matlab to evaluate∫1 𝑑𝑥.
𝑥2
Question 2
Question 3
1) Use the getting started, documentation, and demo resources in MATLAB to learn
about functions and syntax.
2) https://au.mathworks.com/videos/new-mathematics-features-in-matlab-75-
101542.html
Marking Scheme
The following table forms the basis for the marking of MATLAB exercise 1.
3 Find the:
eigenvectors of A 1
diagonalize A 1
Total 5