(Solved) : 4 Consider Simply Supported Beam Rectangular Cross Section Shown Write Matlab Code Calcul Q43977249 . . .
MATLAB intro assignment:

4. Consider a simply supported beam with a rectangular cross-section, as shown below. Write a MATLAB code that will calculate the bending moments M(x), shear forces V(x). maximum tension stresses o(x), maximum shear stresses (x) and deflection (x). All expressions are provided below. Input parameters are length 1, load q, cross-section with b and height h. Define the parameter x as a vector of linearly spaced values between 0 and I using an increment of n. Your results for M,1,0,1, and should be also vectors. Represent your results as diagrams (1.e. plot the distribution of M.V.O. T and 6 along the beam). Test your code assuming: 1 = 10 m,q = 20 kN/m, E = 70 GPa, b = 0.1 m, h = 0.25 m and N = 50. Plot all five expressions using separate graphs, and for each graph add a title, x and y-axis label. [20 points) 8(x)= x(+* +28 – 1 x) M(x) = 124–12x) P(x) = 3121–24x) o(x) = M(*) (*)=3″ Hints: • For beam w/ rectangular x-section, I = 1 bh? A = bh, Ymax =* You will have 5 different plots. To plot multiple figures, follow commands below figure (1); plot (x,d); $labels, legends, title figure (2); plot (x,M); $labels, legends, title Sother plots Without figure() command before plot() command, plots are going to be replaced • Element-wise operator (. ) has to be used • Units must be consistent (preferred unit: SI method). Show transcribed image text 4. Consider a simply supported beam with a rectangular cross-section, as shown below. Write a MATLAB code that will calculate the bending moments M(x), shear forces V(x). maximum tension stresses o(x), maximum shear stresses (x) and deflection (x). All expressions are provided below. Input parameters are length 1, load q, cross-section with b and height h. Define the parameter x as a vector of linearly spaced values between 0 and I using an increment of n. Your results for M,1,0,1, and should be also vectors. Represent your results as diagrams (1.e. plot the distribution of M.V.O. T and 6 along the beam). Test your code assuming: 1 = 10 m,q = 20 kN/m, E = 70 GPa, b = 0.1 m, h = 0.25 m and N = 50. Plot all five expressions using separate graphs, and for each graph add a title, x and y-axis label. [20 points) 8(x)= x(+* +28 – 1 x) M(x) = 124–12x) P(x) = 3121–24x) o(x) = M(*) (*)=3″ Hints: • For beam w/ rectangular x-section, I = 1 bh? A = bh, Ymax =* You will have 5 different plots. To plot multiple figures, follow commands below figure (1); plot (x,d); $labels, legends, title figure (2); plot (x,M); $labels, legends, title Sother plots Without figure() command before plot() command, plots are going to be replaced • Element-wise operator (. ) has to be used • Units must be consistent (preferred unit: SI method).
Expert Answer
Answer to 4. Consider a simply supported beam with a rectangular cross-section, as shown below. Write a MATLAB code that will calc…
OR