# Engineering MATLAB

MATLAB Assignment 01,  Revision 00.    Practice with for loops and Cantilevered Beams, Shear load, Bending Moment, Shear Stress, and Bending Stress. Based on problems from Singer, Chapters 4, 5, pages 90 â€“ 150

Write a script file to solve or complete the problems. You should submit only one script file containing all the problems. Clearly indicate in the file which problem is which; use the disp(  ) command or the fprintf(  ) command, or combinations thereof to distinguish problems and show results.  Include your name in the script file using the disp (  ) command.

Due Monday,  November  04, 2013 between 6:00pm and 11:00pm.  Include MATLAB 01 in the e-mail title.

Problem 1.   Shear Forces and Bending Moments for Cantilevered Beam.

Given:  Cantilevered Beam Length L = 12.00 ft., Beam width w = 2.0 in., height h = 10.0 in. Two loads are applied for the entire length of the Beam. Uniform Load 1 W1 = 100 lb/foot;  Load 2 is triangular, going from 0.0 at the â€˜free endâ€™ of the Beam to W2 = 240 lb/foot at the wall or â€˜fixed endâ€™.   See drawing in .ppt file.

Find:

a. (12 pts)  Define variables for Beam Length, width, height, Load W1,  Load W2, and length step size (dL).

b. (  5 pts ) Calculate Moment of Inertia of the Beam.

Use a â€˜for loopâ€™ to calculate the following ( c Ã  f)

c.  (15 pts)  Shear Forces along the length of the Beam from X = 0 to X = L in 1.0 foot increments.

d. (10 pts)  Shear stresses along the length of the Beam corresponding to the Shear Forces from part b.

e.  (20 pts)  Bending Moments along the length of the Beam from X = 0 to X = L in 1.0 foot increments.

f.  (10 pts)  Bending or Flexural Stresses along the length of the Beam corresponding to the Bending Moments from part d.

The results of parts, c., d., e., and f.  should be placed in appropriately named vectors.

g.  ( 8 pts)  Print a title for the vectors to be printed in step g; it might look like the following example:

Length     Shear Force  Shear Stress   Bending Moment  Bending Stressâ€

h. ( 10 )  Print out the Shear force, Shear Stress, Bending  Moment, and bending Stress Vectors using the fprintf command.

j.  (  5 pts)  Your name within the script file.

k. (  5 pts)  Matlab 01 within the e-mail title.

Equations for use:

Shear Force:  V =   W1 * X  +  W2 * X2 / ( 2*L )

Shear Stress: SS = Shear  Force / Area of Beam  = V / width / height

Bending Moment:  M =  ( W1 * X2 ) / 2  + W2 * X3 / ( 6 * L )

Bending Stress = Moment * vertical distance from center / Moment of Inertia   =  M* (h/2) /  I

L = length of Beam,  X = distance along Beam.

Shear Stress: SS = Shear  Force / Area of Beam  = V / width / height