Tutorial Programming
Tutorial Programming
Tutorial Programming
Learning Outcomes
PROBLEM 1
Given a Table 1 of a data for the human population from the year of 1984 to 1996.
a) Create separate row matrix in MATLAB for storing the year and the population
b) Create separate column matrix in MATLAB for storing the year and population
PROBLEM 2
a) Create the following matrices using MATLAB, denoting that to set all matrix location as
zeros.
5 12
1 7
−3
𝐴=[ 2]
6 −10
3
11 5 3
𝐵=[ ]
2 6.54 1
7 14 1
𝐶 = [10 3 −2]
8 −5 9
PROBLEM 3
The axial force, Fi, in each of the 13 member pin connected truss, can be calculated by solving the
following system of 13 equations;
F2 +0.7071F1 =0
-F2 +F6 =0
F3 -2000 =0
F4 +0.6585F3 -0.7071 F1 =0
F7 +0.6585F8 –F4 =0
F9 +0.7526F5 -4000=0
0.7071F11 –F7 =0
PROBLEM LAB 2
PROBLEM 1
a) Create separate row matrix in MATLAB for storing the year and the population
b) Create separate column matrix in MATLAB for storing the year and population
a) Create the following matrices using MATLAB, denoting that to set all matrix location as zeros