Shear and Bending Moment Assignment - Part Distributions
A distributed load is applied to a cantilevered beam (fixed at the left end/origin) with a magnitude of 2 kN/m. Create a figure that presents each of the three functions in stacked order (top to bottom) for the length of the beam: the loading function (w), shear stress distribution (V), and moment distribution (M). Each of these distributions should be represented by a different color.
Calculate the distribution for the entire domain x=0 to x=3m using the function w(x) = Sx kN/m. Use "max" to determine the maximum value for each of these distributions and then use "fprintf" to neatly print those values to the command window.
Use "xlim" to restrict the plot of the results to the domain x=0 to x=2m. Title and label the axes and plots accordingly.
M(x) = -6 + 3x - x^2 kN*m. Title the figure window "Shear and Bending Moment Distributions".