Question: Suppose we have a supported beam with a uniformly distributed load. The deflection ( y ) of the beam at any point x along its
Suppose we have a supported beam with a uniformly distributed load. The deflection y of the beam at any point x along its length can be approximated by the following equation:
Where Wo is the uniformly distributed load force per unit length E is Youngs modulus of the material, I is the moment of inertia of the beams crosssectional area, L is the length of the beam, and x is the distance along the beam.
a Write a MATLAB function to calculate the deflection for values of x Input in the code Wo KNcm E KNcm I cm and L cm Enable the code to:
calculate the deflection
determine the maximum deflection and maximum deflection locations using MATLABs
builtin function min The min function in MATLAB returns the minimum value and the index where that minimum value occurs in the input vector for more information help min command
syntax: minvalue, indexminvariable name of the array containing all values
Note that deflection values are negative numbers, and the max deflection min value.
use the index from the above output to identify the location of maximum deflection of
vector x
Example vector x contains data points, then write a code to find the data that is stored in row in this case index
o x; then x
plot the deflection yx along the length of the beam
mark the point of maximum deflection on the plot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
