Question: Download and study the attached MATLAB Template.m darr. Then modify the template by adding the following: A . Add a function called Momentoflnertia that calculates

Download and study the attached MATLAB Template.m darr. Then modify the template by adding the following:
A. Add a function called "Momentoflnertia" that calculates I given the beam width b and beam height h.
B. Add a function to the script called "BeamDisplacement". This function should:
Receive the tip load, P, current length, L, and the modulus E, and moment of inertial, I.
It should return the displacement calculated using the equation shown above.
C. Add a for-loop that repeats 5 times and calls these two functions. For each iteration increase the height of the beam by 1 inch. Start with 0.1 in. So h will go from 0.1,0.2,0.3,0.4,0.5.
D. Plot the result showing the beam height, h, on the x-axis and displacement on the y axis. Ensure all axes are properly labeled.
Use the following properties to determine the values:
P=10,000lbs
Beam Length =5in
E=10**106 psi
b=4in
If you can get these few ideas down, other scripts in this course will be easier to address. '
 Download and study the attached MATLAB Template.m darr. Then modify the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!