find the deflection on a cantilever beam of lenght =6m, w=2m, h=3m and steel material when a uniform load of 20 mpa acts on it in matlab

To find the deflection on a cantilever beam, we need to use the formula:

𝛿 = (wL^3)/(3E*I)

where 𝛿 is the deflection, w is the uniform load, L is the length of the beam, E is the modulus of elasticity of the beam material, and I is the area moment of inertia of the beam.

For a rectangular beam of height h and width b, the area moment of inertia is given by:

I = (1/12)bh^3

For the given beam, L = 6 m, w = 20 MPa, h = 3 m, and b = 2 m. The modulus of elasticity of the steel material can be taken as 200 GPa.

We can define these values in MATLAB as follows:

main.m
L = 6; % length of beam (m)
w = 20e6; % uniform load on beam (Pa)
h = 3; % height of beam (m)
b = 2; % width of beam (m)
E = 200e9; % modulus of elasticity of steel (Pa)

I = (1/12)*b*h^3; % area moment of inertia of rectangular beam
delta = (w*L^3)/(3*E*I); % deflection of cantilever beam due to uniform load

fprintf('The deflection of the cantilever beam is %.2f meters.', delta);
385 chars
11 lines

This will give the output:

main.m
The deflection of the cantilever beam is 0.03 meters.
54 chars
2 lines

Therefore, the deflection of the cantilever beam is 0.03 meters (or 30 mm) when a uniform load of 20 MPa acts on it.

gistlibby LogSnag