Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 cross-sectional 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 value(s) of x. Input in the code Wo=2.5 KN/cm, E=50,000 KN/cm2, I=30,000 cm4, and L=600 cm. Enable the code to:
calculate the deflection
determine the maximum deflection and maximum deflection locations using MATLABs
built-in 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: [min_value, index]=min(variable 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 5 data points, then write a code to find the data that is stored in row 2(in this case index=2)
o x=[2,3,5,7,9]; then x(2)=3
plot the deflection y(x) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions