Matlab Project
Matlab Project
Figure shows a simply supported beam that is subjected to a varying distributed load. L1=L2=L3 = L/3 where
L is the beam length.
Form a group of a maximum of 5 persons. Each group is required to determine the responses of the beam
for the section from one of the rows given in the table below. No repetition of the same data is allowed for
different groups. Write a MATLAB program to determine the maximum deflection of the beam and
its location. Utilise the MATLAB Command Window for beam parameter/property inputs. Use the given
properties to calculate and plot the deflection, shear force, and bending moment diagrams under
different loading conditions using MATLAB:
a) Condition 1: qo = (1:1:3)qi while other parameters are fixed as initial conditions.
b) Condition 2: L = (1:1:3)Li while other parameters are fixed as initial conditions.
c) Condition 3: W = (1:1:3)Wi while other parameters are fixed as initial conditions.
where the subscript i stands for the initial condition listed in the table. Take qi = 100 N/m. You are also
required to save the deflection, shear force and bending moment along the beam span in .xls file
format. Submit your pseudocode, calculation, graph, and MATLAB code as a group report with an
elaboration of the code to eLEAP in two weeks (?). Provide the name and matric number of all members
on the cover page of your submission. Only ONE submission from the group leader is required. No mark
is given for late submission.
Group Material Length, Li (m) Width, Wi Depth, di (m)
(m)
1 Steel 4.0 0.10 0.15
2 Wood 3.0 0.08 0.20
3 Aluminum 4.5 0.06 0.10
4 Concrete 5.0 0.12 0.08
5 Steel 6.0 0.16 0.12
6 Wood 3.5 0.14 0.18
7 Aluminum 4.2 0.12 0.14
8 Concrete 5.5 0.18 0.06
9 Steel 6.5 0.20 0.10
10 Wood 4.0 0.16 0.16
11 Aluminum 4.8 0.14 0.12
12 Concrete 6.0 0.20 0.08
13 Steel 5.5 0.12 0.18
14 Wood 3.5 0.10 0.22
15 Aluminum 4.0 0.08 0.18
16 Concrete 4.5 0.14 0.12
17 Steel 4.0 0.08 0.16
18 Wood 3.0 0.06 0.14
19 Aluminum 4.2 0.10 0.16
20 Concrete 4.8 0.12 0.14
21 Steel 6.0 0.16 0.14
22 Wood 3.5 0.12 0.16
23 Aluminum 4.2 0.14 0.10
24 Concrete 5.0 0.10 0.20
25 Steel 4.5 0.12 0.12
Figure
Marks distribution:
• MATLAB script and functions to plot deflection, shear force and moment diagrams and can
determine the maximum deflection and locate its position (20 marks)
• Pseudocode (5 marks)
• Save in .xls format (5 marks)
• Report (10 marks)