Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MATLAB function called deflect that computes the deflection of a beam at the various points along the beam as the load is moved

image text in transcribed
Write a MATLAB function called deflect that computes the deflection of a beam at the various points along the beam as the load is moved from the starting at the left end using a for' loop. The function gets a vector containing various points along the beam measured in inches ('a'), the total length of the beam (in inches) 'L', that we wish to compute the deflection of the beam and returns a vector of the computed deflection. Use the following formulas to do these calculations. (note b- length-a) For distances where the a- b deflection-24000b(312-4b) 48 30,000,000 795.5 For distances where acb: 24000a(312 -4a2) 48 30,000,000 795.5 5. Write the part of a MATLAB script that creates a vector a that ranges from O to 120 inches in increments of 6 inches, a scalar L 120 It then calls the function deflect(question 4) and then prints the report using the layout as shown. Distance Deflection 0.0000 -0.1086 6.0000 -0.1028 12.0000 -0.0964 18.0000 -0.0895 24.0000 -0.0823 30.0000 -0.0747 Write a MATLAB function called deflect that computes the deflection of a beam at the various points along the beam as the load is moved from the starting at the left end using a for' loop. The function gets a vector containing various points along the beam measured in inches ('a'), the total length of the beam (in inches) 'L', that we wish to compute the deflection of the beam and returns a vector of the computed deflection. Use the following formulas to do these calculations. (note b- length-a) For distances where the a- b deflection-24000b(312-4b) 48 30,000,000 795.5 For distances where acb: 24000a(312 -4a2) 48 30,000,000 795.5 5. Write the part of a MATLAB script that creates a vector a that ranges from O to 120 inches in increments of 6 inches, a scalar L 120 It then calls the function deflect(question 4) and then prints the report using the layout as shown. Distance Deflection 0.0000 -0.1086 6.0000 -0.1028 12.0000 -0.0964 18.0000 -0.0895 24.0000 -0.0823 30.0000 -0.0747

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions